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
try {		
			SelectionDialog dialog= JavaUI.createTypeDialog(getShell(), getWizard().getContainer(), scope, IJavaElementSearchConstants.CONSIDER_CLASSES, false, getClassToTestText());
			dialog.setTitle(WizardMessages.getString("NewTestClassWizPage.class_to_test.dialog.title")); 
			dialog.setMessage(WizardMessages.getString("NewTestClassWizPage.class_to_test.dialog.message")); 
			dialog.open();
			if (dialog.getReturnCode() != SelectionDialog.OK)
				return type;
			else {
				Object[] resultArray= dialog.getResult();
				if (resultArray != null && resultArray.length > 0)
					type= (IType) resultArray[0];
			}
		} catch (JavaModelException e) {
			JUnitPlugin.log(e);
		}
		return type;
	}
	private IStatus classToTestClassChanged() {
		fClassToTestButton.setEnabled(getPackageFragmentRoot() != null);	
		IStatus status= validateClassToTest();
		return status;
	}
	/**
	 * Returns the content of the class to test text field.
	 */
	public String getClassToTestText() {
		return fClassToTestText.getText();
	}
	
	/**