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
setUp= JUnitStubUtility.genStub(getTypeName(), methodTemplate, genStubSettings, imports);
		} else {
			if (settings.createComments)
				setUp= "/**" + 
					getLineDelimiter() + 
					" * Sets up the fixture, for example, open a network connection." + 
					getLineDelimiter() +
					" * This method is called before a test is executed." + 
					getLineDelimiter() +
					" * @throws Exception" + 
					getLineDelimiter() +
					" */" + 
					getLineDelimiter(); 
			setUp+= "protected void "+SETUP+"() throws Exception {}" + 
				getLineDelimiter() + getLineDelimiter(); 
		}
		type.createMethod(setUp, null, false, null);	
		fIndexOfFirstTestMethod++;
	}
	
	private void createTearDown(IType type, ImportsManager imports) throws JavaModelException {
		ITypeHierarchy typeHierarchy= null;
		IType[] superTypes= null;
		String tearDown= ""; 
		IMethod methodTemplate= null;
		if (type.exists()) {
			if (typeHierarchy == null) {
				typeHierarchy= type.newSupertypeHierarchy(null);
				superTypes= typeHierarchy.getAllSuperclasses(type);
			}