/** * Returns the execution environment identifier in the following JRE * classpath container path, or <code>null</code> if none. * * @param jreContainerPath classpath container path * @return execution environment identifier or <code>null</code> * @since 3.2 */ public static String getExecutionEnvironmentId(IPath jreContainerPath) { return JREContainerInitializer.getExecutionEnvironmentId(jreContainerPath); }
/** * Returns whether the given path identifies a VM by execution environment. * * @param path the path * @return whether the given path identifies a VM by execution environment */ public static boolean isExecutionEnvironment(IPath path) { return getExecutionEnvironmentId(path) != null; }
/** * Returns whether the given path identifies a VM by execution environment. * * @param path the path * @return whether the given path identifies a VM by execution environment */ public static boolean isExecutionEnvironment(IPath path) { return getExecutionEnvironmentId(path) != null; }
/** * Returns the execution environment identifier in the following JRE * classpath container path, or <code>null</code> if none. * * @param jreContainerPath classpath container path * @return execution environment identifier or <code>null</code> * @since 3.2 */ public static String getExecutionEnvironmentId(IPath jreContainerPath) { return JREContainerInitializer.getExecutionEnvironmentId(jreContainerPath); }
/** * @see org.eclipse.jdt.core.ClasspathContainerInitializer#getDescription(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject) */ @Override public String getDescription(IPath containerPath, IJavaProject project) { String tag = getExecutionEnvironmentId(containerPath); if (tag == null && containerPath.segmentCount() > 2) { tag = getVMName(containerPath); } if (tag != null) { return NLS.bind(LaunchingMessages.JREContainer_JRE_System_Library_1, new String[]{tag}); } return LaunchingMessages.JREContainerInitializer_Default_System_Library_1; } }
/** * @see org.eclipse.jdt.core.ClasspathContainerInitializer#getDescription(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject) */ @Override public String getDescription(IPath containerPath, IJavaProject project) { String tag = getExecutionEnvironmentId(containerPath); if (tag == null && containerPath.segmentCount() > 2) { tag = getVMName(containerPath); } if (tag != null) { return NLS.bind(LaunchingMessages.JREContainer_JRE_System_Library_1, new String[]{tag}); } return LaunchingMessages.JREContainerInitializer_Default_System_Library_1; } }
@Override public void buildFinished(IJavaProject project) { super.buildFinished(project); if (fCleaned.remove(project)) { String eeId = null; IPath container = null; try { IClasspathEntry[] rawClasspath = project.getRawClasspath(); for (int j = 0; j < rawClasspath.length; j++) { IClasspathEntry entry = rawClasspath[j]; if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { IPath path = entry.getPath(); if (JavaRuntime.JRE_CONTAINER.equals(path.segment(0))) { container = path; eeId = JREContainerInitializer.getExecutionEnvironmentId(path); } } } } catch (CoreException e) { LaunchingPlugin.log(e); } if (container != null && eeId != null) { IVMInstall vm = JREContainerInitializer.resolveVM(container); validateEnvironment(eeId, project, vm); } } }
if (JavaRuntime.JRE_CONTAINER.equals(path.segment(0))) { container = path; eeId = JREContainerInitializer.getExecutionEnvironmentId(path);
if (containerPath.segmentCount() > 1) { String id = getExecutionEnvironmentId(containerPath); if (id != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) {
if (containerPath.segmentCount() > 1) { String id = getExecutionEnvironmentId(containerPath); if (id != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) {