Bug 8790 [Wizards] Non-api subclassing of BasicNewResourceWizard
The JavaDoc for BasicNewResourceWizard indicates that that should not be subclassed. It is being subclassed by: org.eclipse.jdt.internal.ui.wizards.NewElementWizard org.eclipse.jdt.ui.examples.projects.ExampleProjectCreationWizard
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestCaseCreationWizard.java
fPage= new NewTestCaseCreationWizardPage();
		fPage2= new NewTestCaseCreationWizardPage2(fPage);
		addPage(fPage);
		fPage.init(getSelection(),fPage2);
		addPage(fPage2);
	}	
	
	/*
	 * @see Wizard#performFinish
	 */		
	public boolean performFinish() {
		if (finishPage(fPage.getRunnable())) {
			IType newClass= fPage.getCreatedType();
			ICompilationUnit cu= newClass.getCompilationUnit();				
			if (cu.isWorkingCopy()) {
				cu= (ICompilationUnit)cu.getOriginalElement();
			}	
			IResource resource= cu.getResource();
			if (resource != null) {
				selectAndReveal(resource);
				openResource(resource);
			}
			fPage.saveWidgetValues();
			fPage2.saveWidgetValues();
			
			return true;
		}
		return false;		
	}
}