private IPackageFragmentRoot handleTestSourceFolder(IJavaProject javaProject) throws Exception {
String testSourceFolderName =
com.google.gdt.eclipse.designer.Activator.getStore().getString(
Constants.P_GWT_TESTS_SOURCE_FOLDER);
IFolder testSourceFolder = javaProject.getProject().getFolder(testSourceFolderName);
IPackageFragmentRoot testSourceFragmentRoot =
(IPackageFragmentRoot) JavaCore.create(testSourceFolder);
// check create
if (!testSourceFolder.exists()
|| testSourceFragmentRoot == null
|| !testSourceFragmentRoot.exists()) {
// create folder
if (!testSourceFolder.exists()) {
testSourceFolder.create(true, false, null);
}
IClasspathEntry[] classpath = javaProject.getRawClasspath();