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

How to use org.eclipse.jdt.launching

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * Returns a path for the JRE classpath container identifying the
 * specified VM install by type and name.
 *
 * @param vm VM install
 * @return classpath container path
 * @since 3.2
 */
public static IPath newJREContainerPath(IVMInstall vm) {
  return newJREContainerPath(vm.getVMInstallType().getId(), vm.getName());
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private String getDefaultJVMName() {
  IVMInstall install= JavaRuntime.getDefaultVMInstall();
  if (install != null) {
    return install.getName();
  } else {
    return NewWizardMessages.NewJavaProjectWizardPageOne_UnknownDefaultJRE_name;
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * Construct a <code>VMStandin</code> instance based on the specified <code>IVMInstall</code>.
 * Changes to this stand-in will not be reflected in the 'real' VM until <code>convertToRealVM</code>
 * is called.
 *
 * @param realVM the 'real' VM from which to construct this stand-in VM
 */
public VMStandin(IVMInstall realVM) {
  this (realVM.getVMInstallType(), realVM.getId());
  init(realVM);
}
origin: org.eclipse/org.eclipse.pde.core

private IVMInstall getVMInstall(String name) {
  IVMInstallType[] types = JavaRuntime.getVMInstallTypes();
  for (int i = 0; i < types.length; i++) {
    IVMInstall[] installs = types[i].getVMInstalls();
    for (int k = 0; k < installs.length; k++) {
      if (installs[i].getName().equals(name))
        return installs[i];
    }
  }
  return JavaRuntime.getDefaultVMInstall();
}

origin: eclipse/eclipse.jdt.ls

private IVMInstall findVM(File jvmHome) {
  IVMInstallType[] types = JavaRuntime.getVMInstallTypes();
  for (IVMInstallType type : types) {
    IVMInstall[] installs = type.getVMInstalls();
    for (IVMInstall install : installs) {
      if (jvmHome.equals(install.getInstallLocation())) {
        return install;
      }
    }
  }
  return null;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

@Override
public String[] getVMArguments() {
  String args = getVMArgs();
  if (args == null) {
    return null;
  }
  ExecutionArguments ex = new ExecutionArguments(args, ""); //$NON-NLS-1$
  return ex.getVMArgumentsArray();
}

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

/**
 * Constructs a copy of the specified VM with the given identifier.
 * 
 * @param sourceVM the original VM 
 * @param id the new ID to use
 * @since 3.2
 */
public VMStandin(IVMInstall sourceVM, String id) {
  super(sourceVM.getVMInstallType(), id);
  setNotify(false);
  init(sourceVM);
}

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

/**
 * Sets a VM connector as the system-wide default VM. This setting is persisted when
 * saveVMConfiguration is called.
 * @param    connector The connector to make the default. May be <code>null</code> to clear
 *                 the default.
 * @param monitor The progress monitor to use
 * @since 2.0
 * @throws CoreException Thrown if saving the new default setting fails
 */
public static void setDefaultVMConnector(IVMConnector connector, IProgressMonitor monitor) throws CoreException {
  fgDefaultVMConnectorId= connector.getIdentifier();
  saveVMConfiguration();
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * Computes and returns the unresolved source lookup path for the given launch
 * configuration.
 *
 * @param configuration launch configuration
 * @return runtime classpath entries
 * @exception CoreException if unable to compute the source lookup path
 * @since 2.0
 */
public static IRuntimeClasspathEntry[] computeUnresolvedSourceLookupPath(ILaunchConfiguration configuration) throws CoreException {
  return getSourceLookupPathProvider(configuration).computeUnresolvedClasspath(configuration);
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * Computes and returns the unresolved class path for the given launch configuration.
 * Variable and container entries are unresolved.
 *
 * @param configuration launch configuration
 * @return unresolved runtime classpath entries
 * @exception CoreException if unable to compute the classpath
 * @since 2.0
 */
public static IRuntimeClasspathEntry[] computeUnresolvedRuntimeClasspath(ILaunchConfiguration configuration) throws CoreException {
  return getClasspathProvider(configuration).computeUnresolvedClasspath(configuration);
}
origin: org.eclipse/org.eclipse.jdt.ui

private String getDefaultJVMName() {
  IVMInstall install= JavaRuntime.getDefaultVMInstall();
  if (install != null) {
    return install.getName();
  } else {
    return NewWizardMessages.JavaProjectWizardFirstPage_UnknownDefaultJRE_name;
  }
}

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

/**
 * Returns a path for the JRE classpath container identifying the
 * specified VM install by type and name.
 * 
 * @param vm VM install
 * @return classpath container path
 * @since 3.2
 */
public static IPath newJREContainerPath(IVMInstall vm) {
  return newJREContainerPath(vm.getVMInstallType().getId(), vm.getName());
}

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

@Override
public String[] getVMArguments() {
  String args = getVMArgs();
  if (args == null) {
    return null;
  }
  ExecutionArguments ex = new ExecutionArguments(args, ""); //$NON-NLS-1$
  return ex.getVMArgumentsArray();
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * Construct a <code>VMStandin</code> instance based on the specified <code>IVMInstall</code>.
 * Changes to this stand-in will not be reflected in the 'real' VM until <code>convertToRealVM</code>
 * is called.
 * 
 * @param realVM the 'real' VM from which to construct this stand-in VM
 */
public VMStandin(IVMInstall realVM) {
  this (realVM.getVMInstallType(), realVM.getId());
  init(realVM);
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

/**
 * Constructs a copy of the specified VM with the given identifier.
 *
 * @param sourceVM the original VM
 * @param id the new ID to use
 * @since 3.2
 */
public VMStandin(IVMInstall sourceVM, String id) {
  super(sourceVM.getVMInstallType(), id);
  setNotify(false);
  init(sourceVM);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

/**
 * Computes and returns the unresolved source lookup path for the given launch
 * configuration.
 * 
 * @param configuration launch configuration
 * @return runtime classpath entries
 * @exception CoreException if unable to compute the source lookup path
 * @since 2.0
 */
public static IRuntimeClasspathEntry[] computeUnresolvedSourceLookupPath(ILaunchConfiguration configuration) throws CoreException {
  return getSourceLookupPathProvider(configuration).computeUnresolvedClasspath(configuration);
}

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

/**
 * Computes and returns the unresolved class path for the given launch configuration.
 * Variable and container entries are unresolved.
 * 
 * @param configuration launch configuration
 * @return unresolved runtime classpath entries
 * @exception CoreException if unable to compute the classpath
 * @since 2.0
 */
public static IRuntimeClasspathEntry[] computeUnresolvedRuntimeClasspath(ILaunchConfiguration configuration) throws CoreException {
  return getClasspathProvider(configuration).computeUnresolvedClasspath(configuration);
}

origin: io.sarl/io.sarl.eclipse

private String getDefaultJVMName() {
  final IVMInstall install = JavaRuntime.getDefaultVMInstall();
  if (install != null) {
    return install.getName();
  }
  return NewWizardMessages.NewJavaProjectWizardPageOne_UnknownDefaultJRE_name;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private String getDefaultJVMName() {
  IVMInstall install= JavaRuntime.getDefaultVMInstall();
  if (install != null) {
    return install.getName();
  } else {
    return NewWizardMessages.NewJavaProjectWizardPageOne_UnknownDefaultJRE_name;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

/**
 * Returns the name of the default VM Install from Java Runtime.
 * Will return an empty string if no default VM has been set.
 * @return name of the default vm install, possibly an empty string
 */
public static String getDefaultVMInstallName() {
  IVMInstall install = JavaRuntime.getDefaultVMInstall();
  if (install != null)
    return install.getName();
  return ""; //$NON-NLS-1$
}
org.eclipse.jdt.launching

Most used classes

  • JavaRuntime
  • IVMInstall
  • IExecutionEnvironment
  • IRuntimeClasspathEntry
  • IVMInstallType
  • ExecutionArguments,
  • IVMInstall2,
  • IVMRunner,
  • VMRunnerConfiguration,
  • LibraryLocation,
  • VMStandin,
  • JavaLaunchDelegate,
  • AbstractJavaLaunchConfigurationDelegate,
  • IRuntimeClasspathEntry2,
  • AbstractVMInstall,
  • SocketUtil,
  • StandardClasspathProvider,
  • JavaProjectSourceContainer,
  • IVMConnector
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