Bug 38507 NewTestCaseWizard - "Type name is empty" error msg on dialog open [JUnit]
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestCaseCreationWizardPage.java
*/
	public void setVisible(boolean visible) {
		super.setVisible(visible);
		if (visible && fFirstTime) {
			handleFieldChanged(CLASS_TO_TEST); 
			if (getClassToTestText().equals("")) 
				setPageComplete(false);
			fFirstTime= false;
		}
		
		if (visible) setFocus();
	}
	private void validateJUnitOnBuildPath() {
		IPackageFragmentRoot root= getPackageFragmentRoot();
		if (root == null)
			return;
		IJavaProject jp= root.getJavaProject();
		
		try {
			if (jp.findType(JUnitPlugin.TEST_SUPERCLASS_NAME) != null)
				return;
		} catch (JavaModelException e) {
		}
		if (MessageDialog.openQuestion(getShell(), WizardMessages.getString("NewTestClassWizPage.not_on_buildpath.title"), WizardMessages.getString("NewTestClassWizPage.not_on_buildpath.message"))) { 
			try {
				addJUnitToBuildPath(jp);
				return;
			} catch(JavaModelException e) {
				ErrorDialog.openError(getShell(), WizardMessages.getString("NewTestClassWizPage.cannot_add.title"), WizardMessages.getString("NewTestClassWizPage.cannot_add.message"), e.getStatus()); 
			}