/** * Returns the classpath entries associated with the given VM * in the context of the given path and project. * * @param vm the VM * @param containerPath the container path resolution is for * @param project project the resolution is for * @return classpath entries */ private static IClasspathEntry[] getClasspathEntries(IVMInstall vm, IPath containerPath, IJavaProject project) { String id = JavaRuntime.getExecutionEnvironmentId(containerPath); IClasspathEntry[] entries = null; if (id == null) { // cache classpath entries per JRE when not bound to an EE entries = fgClasspathEntries.get(vm); if (entries == null) { entries = computeClasspathEntries(vm, project, id); fgClasspathEntries.put(vm, entries); } } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tEE:\t" + id); //$NON-NLS-1$ } // dynamically compute entries when bound to an EE entries = computeClasspathEntries(vm, project, id); } return entries; }
/** * @see IClasspathContainer#getClasspathEntries() */ @Override public IClasspathEntry[] getClasspathEntries() { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("<JRE_CONTAINER> getClasspathEntries() " + this.toString()); //$NON-NLS-1$ LaunchingPlugin.trace("\tJRE:\t" + fVMInstall.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\tPath:\t" + getPath().toString()); //$NON-NLS-1$ LaunchingPlugin.trace("\tProj:\t" + fProject.getProject().getName()); //$NON-NLS-1$ } IClasspathEntry[] entries = getClasspathEntries(fVMInstall, getPath(), fProject); if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tResolved " + entries.length + " entries:"); //$NON-NLS-1$//$NON-NLS-2$ } return entries; }
containers[i] = new JREContainer(vm, containerPath, projects[i]);
IVMInstall vm = JavaRuntime.getVMInstall(path); if (vm != null) { JREContainer container = new JREContainer(vm, path, project); return container.getDescription();
/** * @see IClasspathContainer#getDescription() */ @Override public String getDescription() { String environmentId = JavaRuntime.getExecutionEnvironmentId(getPath()); String tag = null; if (environmentId == null) { tag = fVMInstall.getName(); } else { tag = environmentId; } return NLS.bind(LaunchingMessages.JREContainer_JRE_System_Library_1, new String[]{tag}); }
IClasspathAttribute[] attributes = JREContainer.buildClasspathAttributes(vm, libs[i], overrideJavaDoc); IAccessRule[] libRules = null; if (rules != null) {
containers[i] = new JREContainer(vm, containerPath, projects[i]);
/** * @see IClasspathContainer#getDescription() */ @Override public String getDescription() { String environmentId = JavaRuntime.getExecutionEnvironmentId(getPath()); String tag = null; if (environmentId == null) { tag = fVMInstall.getName(); } else { tag = environmentId; } return NLS.bind(LaunchingMessages.JREContainer_JRE_System_Library_1, new String[]{tag}); }
IClasspathAttribute[] attributes = JREContainer.buildClasspathAttributes(vm, libs[i], overrideJavaDoc); IAccessRule[] libRules = null; if (rules != null) {
LaunchingPlugin.trace("\tResolved VM: " + vm.getName()); //$NON-NLS-1$ container = new JREContainer(vm, containerPath, project); } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) {
/** * @see IClasspathContainer#getClasspathEntries() */ @Override public IClasspathEntry[] getClasspathEntries() { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("<JRE_CONTAINER> getClasspathEntries() " + this.toString()); //$NON-NLS-1$ LaunchingPlugin.trace("\tJRE:\t" + fVMInstall.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\tPath:\t" + getPath().toString()); //$NON-NLS-1$ LaunchingPlugin.trace("\tProj:\t" + fProject.getProject().getName()); //$NON-NLS-1$ } IClasspathEntry[] entries = getClasspathEntries(fVMInstall, getPath(), fProject); if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tResolved " + entries.length + " entries:"); //$NON-NLS-1$//$NON-NLS-2$ } return entries; }
/** * Returns the classpath entries associated with the given VM * in the context of the given path and project. * * @param vm the VM * @param containerPath the container path resolution is for * @param project project the resolution is for * @return classpath entries */ private static IClasspathEntry[] getClasspathEntries(IVMInstall vm, IPath containerPath, IJavaProject project) { String id = JavaRuntime.getExecutionEnvironmentId(containerPath); IClasspathEntry[] entries = null; if (id == null) { // cache classpath entries per JRE when not bound to an EE entries = fgClasspathEntries.get(vm); if (entries == null) { entries = computeClasspathEntries(vm, project, id); fgClasspathEntries.put(vm, entries); } } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tEE:\t" + id); //$NON-NLS-1$ } // dynamically compute entries when bound to an EE entries = computeClasspathEntries(vm, project, id); } return entries; }
LaunchingPlugin.trace("\tResolved VM: " + vm.getName()); //$NON-NLS-1$ container = new JREContainer(vm, containerPath, project); } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) {