/** * 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()); }
private String getDefaultJVMName() { IVMInstall install= JavaRuntime.getDefaultVMInstall(); if (install != null) { return install.getName(); } else { return NewWizardMessages.NewJavaProjectWizardPageOne_UnknownDefaultJRE_name; } }
/** * 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); }
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(); }
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; }
@Override public String[] getVMArguments() { String args = getVMArgs(); if (args == null) { return null; } ExecutionArguments ex = new ExecutionArguments(args, ""); //$NON-NLS-1$ return ex.getVMArgumentsArray(); }
/** * 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); }
/** * 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(); }
/** * 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); }
/** * 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); }
private String getDefaultJVMName() { IVMInstall install= JavaRuntime.getDefaultVMInstall(); if (install != null) { return install.getName(); } else { return NewWizardMessages.JavaProjectWizardFirstPage_UnknownDefaultJRE_name; } }
/** * 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()); }
@Override public String[] getVMArguments() { String args = getVMArgs(); if (args == null) { return null; } ExecutionArguments ex = new ExecutionArguments(args, ""); //$NON-NLS-1$ return ex.getVMArgumentsArray(); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
private String getDefaultJVMName() { final IVMInstall install = JavaRuntime.getDefaultVMInstall(); if (install != null) { return install.getName(); } return NewWizardMessages.NewJavaProjectWizardPageOne_UnknownDefaultJRE_name; }
private String getDefaultJVMName() { IVMInstall install= JavaRuntime.getDefaultVMInstall(); if (install != null) { return install.getName(); } else { return NewWizardMessages.NewJavaProjectWizardPageOne_UnknownDefaultJRE_name; } }
/** * 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$ }