Codota Logo
org.eclipse.jdt.internal.launching
Code IndexAdd Codota to your IDE (free)

How to use org.eclipse.jdt.internal.launching

Best Java code snippets using org.eclipse.jdt.internal.launching (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * 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();
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

@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;
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * 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;
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

@Override
public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) {
  if (!fBatchingChanges) {
    VMChanges changes = new VMChanges();
    changes.defaultVMInstallChanged(previous, current);
    changes.process();
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

@Override
public void terminate() throws DebugException {
  if (!fTerminated){
    fTerminated = true;
    if (fWaitForConnectionJob != null){
      fWaitForConnectionJob.cancel();
      fWaitForConnectionJob.stopListening();
      fWaitForConnectionJob = null;
    }
    fireTerminateEvent();
  }
}

origin: org.eclipse.jdt/org.eclipse.jdt.launching

@Override
public void vmChanged(org.eclipse.jdt.launching.PropertyChangeEvent event) {
  if (!fBatchingChanges) {
    VMChanges changes = new VMChanges();
    changes.vmChanged(event);
    changes.process();
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * 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);
}

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * Returns all VM connector extensions.
 *
 * @return VM connectors
 * @since 2.0
 */
public static IVMConnector[] getVMConnectors() {
  return LaunchingPlugin.getDefault().getVMConnectors();
}

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

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) + '"';
  }
}

origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * @see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrarySource(java.io.File)
 */
@Override
protected IPath getDefaultSystemLibrarySource(File libLocation) {
  setDefaultRootPath(""); //$NON-NLS-1$
  return Path.EMPTY;
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * 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);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

  /**
   * 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);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * 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);
}

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

public WaitForConnectionJob(IProcess waitProcess, ListeningConnector connector, Map<String, Connector.Argument> arguments) {
  super(getLabel());
  fWaitProcess = waitProcess;
  fConnector = connector;
  fArguments = arguments;
}

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

private static String convertToHTMLContent(String content) {
  content = replace(content, '"', "&quot;"); //$NON-NLS-1$
  content = replace(content, '\'', "&#39;"); //$NON-NLS-1$
  return content;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

@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;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

@Override
public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) {
  if (!fBatchingChanges) {
    VMChanges changes = new VMChanges();
    changes.defaultVMInstallChanged(previous, current);
    changes.process();
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * 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();
}
  
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * 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;
}    

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * @see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrarySource(java.io.File)
 */
@Override
protected IPath getDefaultSystemLibrarySource(File libLocation) {
  setDefaultRootPath(""); //$NON-NLS-1$
  return Path.EMPTY;
}

org.eclipse.jdt.internal.launching

Most used classes

  • RuntimeClasspathEntry
  • JavaMigrationDelegate
    Delegate for migrating Java launch configurations. The migration process involves a resource mapping
  • JavaSourceLookupDirector
  • VariableClasspathEntry
  • DefaultEntryResolver
    Default resolver for a contributed classpath entry
  • JREContainer,
  • JRERuntimeClasspathEntryResolver,
  • VMDefinitionsContainer,
  • EnvironmentsManager,
  • AbstractRuntimeClasspathEntry,
  • ClasspathContainerSourceContainerTypeDelegate,
  • ClasspathVariableSourceContainerTypeDelegate,
  • CompositeId,
  • EECompilationParticipant,
  • EEVMInstall,
  • EEVMType,
  • JREContainer$1,
  • JREContainer$RuleEntry,
  • JREContainer$RuleKey
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now