Java Code Examples for org.eclipse.jdt.launching.JavaRuntime#newJREContainerPath()
The following examples show how to use
org.eclipse.jdt.launching.JavaRuntime#newJREContainerPath() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReorgCorrectionsSubProcessor.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private boolean isEEOnClasspath(IExecutionEnvironment ee) throws JavaModelException { IPath eePath= JavaRuntime.newJREContainerPath(ee); for (IClasspathEntry entry: fProject.getRawClasspath()) { if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER && entry.getPath().equals(eePath)) return true; } return false; }
Example 2
Source File: JavaProjectSetupUtil.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public static void addJreClasspathEntry(IJavaProject javaProject, String bree) throws JavaModelException { IPath jreContainerPath = JavaRuntime.newJREContainerPath(StandardVMType.ID_STANDARD_VM_TYPE, bree); addToClasspath(javaProject, JavaCore.newContainerEntry(jreContainerPath)); }
Example 3
Source File: JavaProjectSetupUtil.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public static void addJreClasspathEntry(IJavaProject javaProject, String bree) throws JavaModelException { IPath jreContainerPath = JavaRuntime.newJREContainerPath(StandardVMType.ID_STANDARD_VM_TYPE, bree); addToClasspath(javaProject, JavaCore.newContainerEntry(jreContainerPath)); }
Example 4
Source File: JavaProjectSetupUtil.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.17 */ public static void addJreClasspathEntry(IJavaProject javaProject, String bree, boolean build) throws JavaModelException { IPath jreContainerPath = JavaRuntime.newJREContainerPath(StandardVMType.ID_STANDARD_VM_TYPE, bree); addToClasspath(javaProject, JavaCore.newContainerEntry(jreContainerPath), build); }
Example 5
Source File: ProjectClasspathFactory.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
protected IPath newJREContainerPath(final IExecutionEnvironment executionEnvironment) { return JavaRuntime.newJREContainerPath(executionEnvironment); }