Bug 58537 Migration to new source lookup facilities [JUnit]
New source lookup facilities have been added to the debug platform. The Java debugger provides a corresponding new implementation for source lookup. The following patch will migrate the JUnit launch config to use the new source lookup support. The changes are: * specify the platform source lookup tab in the tab group * no longer initialize the source locator attribute in launch shortcuts * specify the source locator and source path computer for the JUnit launch config type in plug-in XML
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestCaseCreationWizardPage.java
if (visible && fFirstTime) {
			if (getClassToTestText().equals("")) 
				setPageComplete(false);
			else
				handleFieldChanged(CLASS_TO_TEST); 
			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()); 
			}	
		}
		JUnitStatus status= new JUnitStatus();