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
}
			newMethodsNames.add(methodName.toString());
			newMethod.append("public "); 
			if (fPage2.getCreateFinalMethodStubsButtonSelection())
				newMethod.append("final "); 
			newMethod.append("void "); 
			newMethod.append(methodName.toString());
			newMethod.append("()"); 
			appendTestMethodBody(newMethod, testedMethod);
			type.createMethod(newMethod.toString(), null, false, null);	
		}
	}
	
	private String getLineDelimiter(){
		IType classToTest= getClassToTest();
		
		if (classToTest != null && classToTest.exists())
			return JUnitStubUtility.getLineDelimiterUsed(classToTest);
		else	
			return JUnitStubUtility.getLineDelimiterUsed(getPackageFragment());
	}
	
	private void appendTestMethodBody(StringBuffer newMethod, IMethod testedMethod) {
		newMethod.append("{"); 
		if (createTasks()){
			newMethod.append(getLineDelimiter());
			newMethod.append("//"); 
			newMethod.append(JUnitStubUtility.getTodoTaskTag(getPackageFragment().getJavaProject()));
			newMethod.append(WizardMessages.getFormattedString("NewTestClassWizPage.marker.message", testedMethod.getElementName())); 
			newMethod.append(getLineDelimiter());