/** * Returns the version of the VM at the given location, with the given * executable. * * @param javaHome the Java home folder * @param javaExecutable the Java executable file * @return String */ protected String getVMVersion(File javaHome, File javaExecutable) { LibraryInfo info = getLibraryInfo(javaHome, javaExecutable); return info.getVersion(); }
@Override public URL getDefaultJavadocLocation(File installLocation) { File javaExecutable = findJavaExecutable(installLocation); if (javaExecutable != null) { LibraryInfo libInfo = getLibraryInfo(installLocation, javaExecutable); if (libInfo != null) { String version = libInfo.getVersion(); return getDefaultJavadocLocation(version); } } return null; }
/** * Returns the java executable for this VM or <code>null</code> if cannot be found * * @return executable for this VM or <code>null</code> if none */ File getJavaExecutable() { File installLocation = getInstallLocation(); if (installLocation != null) { return StandardVMType.findJavaExecutable(installLocation); } return null; }
@Override public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) { if (!fBatchingChanges) { VMChanges changes = new VMChanges(); changes.defaultVMInstallChanged(previous, current); changes.process(); } }
@Override public void terminate() throws DebugException { if (!fTerminated){ fTerminated = true; if (fWaitForConnectionJob != null){ fWaitForConnectionJob.cancel(); fWaitForConnectionJob.stopListening(); fWaitForConnectionJob = null; } fireTerminateEvent(); } }
private String getQuotedString(String string) { int singleQuotes = count(string, '\''); int doubleQuotes = count(string, '"'); if (doubleQuotes == 0) { return '"' + string + '"'; } else if (singleQuotes == 0) { return '\'' + string + '\''; } else { return '"' + convertToHTMLContent(string) + '"'; } }
/** * Returns the VM connector defined with the specified identifier, * or <code>null</code> if none. * * @param id VM connector identifier * @return VM connector or <code>null</code> if none * @since 2.0 */ public static IVMConnector getVMConnector(String id) { return LaunchingPlugin.getDefault().getVMConnector(id); }
/** * Returns all VM connector extensions. * * @return VM connectors * @since 2.0 */ public static IVMConnector[] getVMConnectors() { return LaunchingPlugin.getDefault().getVMConnectors(); }
/** * @see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrarySource(java.io.File) */ @Override protected IPath getDefaultSystemLibrarySource(File libLocation) { setDefaultRootPath(""); //$NON-NLS-1$ return Path.EMPTY; }
/** * 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 a new runtime classpath entry containing the default classpath * for the specified Java project. * * @param project Java project * @return runtime classpath entry * @since 3.0 */ public static IRuntimeClasspathEntry newDefaultProjectClasspathEntry(IJavaProject project) { return new DefaultProjectClasspathEntry(project); }
public WaitForConnectionJob(IProcess waitProcess, ListeningConnector connector, Map<String, Connector.Argument> arguments) { super(getLabel()); fWaitProcess = waitProcess; fConnector = connector; fArguments = arguments; }
/** * 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); } }
@Override public URL getDefaultJavadocLocation(File installLocation) { File javaExecutable = findJavaExecutable(installLocation); if (javaExecutable != null) { LibraryInfo libInfo = getLibraryInfo(installLocation, javaExecutable); if (libInfo != null) { String version = libInfo.getVersion(); return getDefaultJavadocLocation(version); } } return null; }
@Override public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) { if (!fBatchingChanges) { VMChanges changes = new VMChanges(); changes.defaultVMInstallChanged(previous, current); changes.process(); } }
/** * Returns the version of the VM at the given location, with the given * executable. * * @param javaHome the Java home folder * @param javaExecutable the Java executable file * @return String */ protected String getVMVersion(File javaHome, File javaExecutable) { LibraryInfo info = getLibraryInfo(javaHome, javaExecutable); return info.getVersion(); }
/** * Returns the java executable for this VM or <code>null</code> if cannot be found * * @return executable for this VM or <code>null</code> if none */ File getJavaExecutable() { File installLocation = getInstallLocation(); if (installLocation != null) { return StandardVMType.findJavaExecutable(installLocation); } return null; }
/** * @see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrarySource(java.io.File) */ @Override protected IPath getDefaultSystemLibrarySource(File libLocation) { setDefaultRootPath(""); //$NON-NLS-1$ return Path.EMPTY; }