List of usage examples for org.eclipse.jdt.core JavaCore COMPILER_PB_MAX_PER_UNIT
String COMPILER_PB_MAX_PER_UNIT
To view the source code for org.eclipse.jdt.core JavaCore COMPILER_PB_MAX_PER_UNIT.
Click Source Link
From source file:org.eclipse.ajdt.core.builder.AJBuilder.java
License:Open Source License
/** * Bug 91131 - Checking to see if the user has selected to use project * setting for building. Unfortunately, there is no way of checking * whether the user has selected to use project settings other than to * see whether the options contained on the building page are in the * IEclipsePreferences. There is also the need for this extra check, * rather than just whether there are any IEclipsePreferences, * in Eclipse 3.1 because there are several property pages for the * different compiler options.// w ww. j a v a 2s .c o m */ private boolean usingProjectBuildingOptions(String[] keys) { List<String> listOfKeys = Arrays.asList(keys); return (listOfKeys.contains(JavaCore.COMPILER_PB_MAX_PER_UNIT) || listOfKeys.contains(JavaCore.CORE_JAVA_BUILD_DUPLICATE_RESOURCE) || listOfKeys.contains(JavaCore.CORE_JAVA_BUILD_INVALID_CLASSPATH) || listOfKeys.contains(JavaCore.CORE_JAVA_BUILD_RESOURCE_COPY_FILTER) || listOfKeys.contains(JavaCore.CORE_ENABLE_CLASSPATH_MULTIPLE_OUTPUT_LOCATIONS) || listOfKeys.contains(JavaCore.CORE_CIRCULAR_CLASSPATH) || listOfKeys.contains(JavaCore.CORE_INCOMPLETE_CLASSPATH) || listOfKeys.contains(JavaCore.CORE_INCOMPATIBLE_JDK_LEVEL)); }
From source file:org.eclipse.m2e.tests.BuildPathManagerTest.java
License:Open Source License
public void testCompilerSettings14() throws Exception { deleteProject("compilerSettings14"); ResolverConfiguration configuration = new ResolverConfiguration(); ProjectImportConfiguration projectImportConfiguration = new ProjectImportConfiguration(configuration); importProject("compilerSettings14", "projects/compilerSettings14", projectImportConfiguration); waitForJobsToComplete();//ww w.ja v a2 s. com IProject project = workspace.getRoot().getProject("compilerSettings14"); assertTrue(project.exists()); // Build path specifies execution environment J2SE-1.4. // There are no JREs in the workspace strictly compatible with this environment. WorkspaceHelpers.assertNoErrors(project); IJavaProject javaProject = JavaCore.create(project); assertEquals("1.4", javaProject.getOption(JavaCore.COMPILER_SOURCE, true)); assertEquals("1.4", javaProject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, true)); assertEquals("123", javaProject.getOption(JavaCore.COMPILER_PB_MAX_PER_UNIT, true)); IClasspathEntry jreEntry = getJreContainer(javaProject.getRawClasspath()); assertEquals("J2SE-1.4", JavaRuntime.getExecutionEnvironmentId(jreEntry.getPath())); }