Hashtable<String, String> options = JavaCore.getOptions();
options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5);
options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_5);
options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5);
JavaCore.setOptions(options);
IJavaModel model = JavaCore.create(workspace.getRoot());
TestHelper.setUpProject();
setUpProject2();
IJavaProject javaProject1 = model.getJavaProject("TestProject1");
assertTrue("TestProject1 does not exist", project1.exists());
IJavaProject javaProject2 = model.getJavaProject("TestProject2");
assertTrue("TestProject1 does not exist", project2.exists());
List<IJavaElement> selection = new LinkedList<IJavaElement>();
selection.add(javaProject1);
selection.add(javaProject2);