Bug 26247 JUnit: New Test Case wizard does not init dialogs when browsing for test class
Build 20021113 Open the new Test Case wizard Browse for a test class, select a class (e.g. TestCase), press OK Press the browse button again and press OK Previous selection is replaced with first entry in list. This happens because the dialog is not initialized with the current value (in my example TestCase).
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestCaseCreationWizardPage.java
IJavaSearchScope scope= SearchEngine.createJavaSearchScope(elements);
		
		IType type= null;
		try {
			SelectionDialog dialog= JavaUI.createTypeDialog(getShell(), getWizard().getContainer(), scope, IJavaElementSearchConstants.CONSIDER_CLASSES, false, null);
			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;
	}
	protected 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();