/** * Prints the given message to System.out and to the OSGi tracing (if enabled) * * @param message the message or <code>null</code> * @since 3.8 */ public static void trace(String message) { trace(null, message, null); } }
/** * Prints the given message to System.out and to the OSGi tracing (if enabled) * * @param message the message or <code>null</code> * @since 3.8 */ public static void trace(String message) { trace(null, message, null); } }
/** * @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; }
/** * @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; }
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("<JRE_CONTAINER> initialize()"); //$NON-NLS-1$ LaunchingPlugin.trace("\tPath: " + containerPath.toString()); //$NON-NLS-1$ LaunchingPlugin.trace("\tProj: " + project.getProject().getName()); //$NON-NLS-1$ if (vm != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tResolved VM: " + vm.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** FAILED RESOLVE VM ***"); //$NON-NLS-1$ } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\t*** INVALID JRE CONTAINER PATH ***"); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** NO SEGMENTS IN CONTAINER PATH ***"); //$NON-NLS-1$
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("<JRE_CONTAINER> initialize()"); //$NON-NLS-1$ LaunchingPlugin.trace("\tPath: " + containerPath.toString()); //$NON-NLS-1$ LaunchingPlugin.trace("\tProj: " + project.getProject().getName()); //$NON-NLS-1$ if (vm != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tResolved VM: " + vm.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** FAILED RESOLVE VM ***"); //$NON-NLS-1$ } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\t*** INVALID JRE CONTAINER PATH ***"); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** NO SEGMENTS IN CONTAINER PATH ***"); //$NON-NLS-1$
if (vm != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tResolved VM: " + vm.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** FAILED RESOLVE VM ***"); //$NON-NLS-1$ } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\t*** INVALID JRE CONTAINER PATH ***"); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** NO SEGMENTS IN CONTAINER PATH ***"); //$NON-NLS-1$
if (vm != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tResolved VM: " + vm.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** FAILED RESOLVE VM ***"); //$NON-NLS-1$ } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\t*** INVALID JRE CONTAINER PATH ***"); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** NO SEGMENTS IN CONTAINER PATH ***"); //$NON-NLS-1$
/** * 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("<JRE_CONTAINER> resolveVM(IExecutionEnvironment)"); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** NO COMPATIBLE VMS ***"); //$NON-NLS-1$ vm = install; if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tPerfect Match: " + vm.getName()); //$NON-NLS-1$ vm = installs[0]; if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tFirst Match: " + vm.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\tUser Default VM: " + vm.getName()); //$NON-NLS-1$
LaunchingPlugin.trace("<JRE_CONTAINER> resolveVM(IExecutionEnvironment)"); //$NON-NLS-1$ LaunchingPlugin.trace("\t*** NO COMPATIBLE VMS ***"); //$NON-NLS-1$ vm = install; if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tPerfect Match: " + vm.getName()); //$NON-NLS-1$ vm = installs[0]; if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\tFirst Match: " + vm.getName()); //$NON-NLS-1$ LaunchingPlugin.trace("\tUser Default VM: " + vm.getName()); //$NON-NLS-1$
/** * 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; }
if (id != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("<JRE_CONTAINER> resolveVM(IPath)"); //$NON-NLS-1$ LaunchingPlugin.trace("\tEE: " + id); //$NON-NLS-1$ } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\t*** NO ENVIRONMENT ***"); //$NON-NLS-1$
if (id != null) { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("<JRE_CONTAINER> resolveVM(IPath)"); //$NON-NLS-1$ LaunchingPlugin.trace("\tEE: " + id); //$NON-NLS-1$ } else { if (LaunchingPlugin.DEBUG_JRE_CONTAINER) { LaunchingPlugin.trace("\t*** NO ENVIRONMENT ***"); //$NON-NLS-1$