Field Summary |
|
final public static String | ATTR_CMDLINE Attribute key for a process property. |
final public static String | CLASSPATH_ATTR_LIBRARY_PATH_ENTRY Attribute key for a classpath attribute referencing a
list of shared libraries that should appear on the
-Djava.library.path system property.
The factory methods newLibraryPathsAttribute(String[])
and getLibraryPaths(IClasspathAttribute) should be used to
encode and decode the attribute value. |
final public static int | DEF_CONNECT_TIMEOUT Default launch/connect timeout (ms). |
final public static int | ERR_UNABLE_TO_RESOLVE_JRE A status code indicating that a JRE could not be resolved for a project.
When a JRE cannot be resolved for a project by this plug-in's container
initializer, an exception is thrown with this status code. |
final public static String | EXTENSION_POINT_EXECUTION_ENVIRONMENTS Simple identifier constant (value "executionEnvironments" ) for the
execution environments extension point. |
final public static String | EXTENSION_POINT_RUNTIME_CLASSPATH_ENTRY_RESOLVERS Simple identifier constant (value "runtimeClasspathEntryResolvers" ) for the
runtime classpath entry resolvers extension point. |
final public static String | EXTENSION_POINT_RUNTIME_CLASSPATH_PROVIDERS Simple identifier constant (value "classpathProviders" ) for the
runtime classpath providers extension point. |
final public static String | EXTENSION_POINT_VM_INSTALLS Simple identifier constant (value "vmInstalls" ) for the
VM installs extension point. |
final public static String | JRELIB_VARIABLE Classpath variable name used for the default JRE's library
(value "JRE_LIB" ). |
final public static String | JRESRCROOT_VARIABLE Classpath variable name used for the default JRE's library source root
(value "JRE_SRCROOT" ). |
final public static String | JRESRC_VARIABLE Classpath variable name used for the default JRE's library source
(value "JRE_SRC" ). |
final public static String | JRE_CONTAINER Classpath container used for a project's JRE
(value "org.eclipse.jdt.launching.JRE_CONTAINER" ). |
final public static String | PREF_CONNECT_TIMEOUT Preference key for launch/connect timeout. |
final public static String | PREF_VM_XML Preference key for the String of XML that defines all installed VMs. |
Method Summary |
|
public static void | addContainerResolver(IRuntimeClasspathEntryResolver resolver, String containerIdentifier) Registers the given resolver for the specified container. |
public static void | addVMInstallChangedListener(IVMInstallChangedListener listener) Adds the given listener to the list of registered VM install changed
listeners. |
public static void | addVariableResolver(IRuntimeClasspathEntryResolver resolver, String variableName) Registers the given resolver for the specified variable. |
public static String[] | computeDefaultRuntimeClassPath(IJavaProject jproject) Computes the default application classpath entries for the given
project.
Parameters: jproject - The project to compute the classpath for The computed classpath. |
public static IRuntimeClasspathEntry | computeJREEntry(ILaunchConfiguration configuration) Returns a runtime classpath entry identifying the JRE to use when launching the specified
configuration or null if none is specified. |
public static IRuntimeClasspathEntry | computeJREEntry(IJavaProject project) Returns a runtime classpath entry identifying the JRE referenced by the specified
project, or null if none. |
public static String[] | computeJavaLibraryPath(IJavaProject project, boolean requiredProjects) Returns a collection of paths that should be appended to the given project's
java.library.path system property when launched. |
public static IRuntimeClasspathEntry[] | computeUnresolvedRuntimeClasspath(IJavaProject project) Computes and returns the default unresolved runtime classpath for the
given project. |
public static IRuntimeClasspathEntry[] | computeUnresolvedRuntimeClasspath(ILaunchConfiguration configuration) Computes and returns the unresolved class path for the given launch configuration. |
public static IRuntimeClasspathEntry[] | computeUnresolvedSourceLookupPath(ILaunchConfiguration configuration) Computes and returns the unresolved source lookup path for the given launch
configuration. |
public static IVMInstall | computeVMInstall(ILaunchConfiguration configuration) Returns the VM install for the given launch configuration. |
public static void | fireVMAdded(IVMInstall vm) |
public static void | fireVMChanged(PropertyChangeEvent event) Notifies all VM install changed listeners of the given property change. |
public static void | fireVMRemoved(IVMInstall vm) |
public static IRuntimeClasspathProvider | getClasspathProvider(ILaunchConfiguration configuration) Returns the classpath provider for the given launch configuration. |
public static String | getCompositeIdFromVM(IVMInstall vm) Returns a String that uniquely identifies the specified VM across all VM types. |
public static IClasspathEntry | getDefaultJREContainerEntry() Creates and returns a classpath entry describing
the default JRE container entry. |
public static IVMConnector | getDefaultVMConnector() Return the default VM connector. |
public static IVMInstall | getDefaultVMInstall() Return the default VM set with setDefaultVM() .
Returns the default VM. |
public static String | getExecutionEnvironmentId(IPath jreContainerPath) Returns the execution environment identifier in the following JRE
classpath container path, or null if none. |
public static IExecutionEnvironmentsManager | getExecutionEnvironmentsManager() Returns the execution environments manager. |
public static IClasspathEntry | getJREVariableEntry() Creates and returns a classpath entry describing
the JRE_LIB classpath variable. |
public static IJavaProject | getJavaProject(ILaunchConfiguration configuration) Return the IJavaProject referenced in the specified configuration or
null if none. |
public static LibraryLocation[] | getLibraryLocations(IVMInstall vm) Evaluates library locations for a IVMInstall. |
public static String[] | getLibraryPaths(IClasspathAttribute attribute) Returns an array of strings referencing shared libraries that should
appear on the -Djava.library.path system property at runtime
for an associated
IClasspathEntry , or null if the
given attribute is not a CLASSPATH_ATTR_LIBRARY_PATH_ENTRY .
Each string is used to create an IPath using the constructor
Path(String) , and may contain IStringVariable 's. |
public static Preferences | getPreferences() Returns the preference store for the launching plug-in. |
public static String | getProjectOutputDirectory(ILaunchConfiguration config) Return the String representation of the default output directory of the
launch config's project or null if there is no config, no
project or some sort of problem. |
public static ISourceContainer[] | getSourceContainers(IRuntimeClasspathEntry[] entries) Returns a collection of source containers corresponding to the given
resolved runtime classpath entries. |
public static IRuntimeClasspathProvider | getSourceLookupPathProvider(ILaunchConfiguration configuration) Returns the source lookup path provider for the given launch configuration. |
public static IVMConnector | getVMConnector(String id) Returns the VM connector defined with the specified identifier,
or null if none. |
public static IVMConnector[] | getVMConnectors() Returns all VM connector extensions. |
public static IVMInstall | getVMFromCompositeId(String idString) Return the VM corresponding to the specified composite Id. |
public static IVMInstall | getVMInstall(IJavaProject project) Returns the VM assigned to build the given Java project.
The project must exist. |
public static IVMInstall | getVMInstall(IPath jreContainerPath) Returns the JRE referenced by the specified JRE classpath container
path or null if none. |
public static String | getVMInstallName(IPath jreContainerPath) Returns the name of the VM install referenced by the
given JRE classpath container path, or null if none. |
public static IVMInstallType | getVMInstallType(String id) Returns the VM install type with the given unique id. |
public static String | getVMInstallTypeId(IPath jreContainerPath) Returns the identifier of the VM install type referenced by the
given JRE classpath container path, or null if none. |
public static IVMInstallType[] | getVMInstallTypes() Returns the list of registered VM types. |
public static boolean | isContributedVMInstall(String id) Returns whether the VM install with the specified id was contributed via
the vmInstalls extension point. |
public static boolean | isVMInstallReference(IRuntimeClasspathEntry entry) Returns whether the given runtime classpath entry refers to a vm install. |
public static IRuntimeClasspathEntry | newArchiveRuntimeClasspathEntry(IResource resource) Returns a new runtime classpath entry for the given archive. |
public static IRuntimeClasspathEntry | newArchiveRuntimeClasspathEntry(IPath path) Returns a new runtime classpath entry for the given archive (possibly
external). |
public static IPath | newDefaultJREContainerPath() Returns a path for the JRE classpath container identifying the
default VM install. |
public static IRuntimeClasspathEntry | newDefaultProjectClasspathEntry(IJavaProject project) Returns a new runtime classpath entry containing the default classpath
for the specified Java project. |
public static IPath | newJREContainerPath(IVMInstall vm) Returns a path for the JRE classpath container identifying the
specified VM install by type and name. |
public static IPath | newJREContainerPath(String typeId, String name) Returns a path for the JRE classpath container identifying the
specified VM install by type and name. |
public static IPath | newJREContainerPath(IExecutionEnvironment environment) Returns a path for the JRE classpath container identifying the
specified execution environment. |
public static IClasspathAttribute | newLibraryPathsAttribute(String[] paths) Creates a new classpath attribute referencing a list of shared libraries that should
appear on the -Djava.library.path system property at runtime
for an associated
IClasspathEntry .
The factory methods newLibraryPathsAttribute(String[])
and getLibraryPaths(IClasspathAttribute) should be used to
encode and decode the attribute value.
Parameters: paths - an array of strings representing paths of shared libraries.Each string is used to create an IPath using the constructorPath(String) , and may contain IStringVariable 's.Variable substitution is performed on each string before a path is constructedfrom a string. |
public static IRuntimeClasspathEntry | newProjectRuntimeClasspathEntry(IJavaProject project) Returns a new runtime classpath entry for the given project. |
public static IRuntimeClasspathEntry | newRuntimeClasspathEntry(String memento) Returns a runtime classpath entry constructed from the given memento. |
public static IRuntimeClasspathEntry | newRuntimeContainerClasspathEntry(IPath path, int classpathProperty) Returns a runtime classpath entry for the given container path with the given
classpath property. |
public static IRuntimeClasspathEntry | newRuntimeContainerClasspathEntry(IPath path, int classpathProperty, IJavaProject project) Returns a runtime classpath entry for the given container path with the given
classpath property to be resolved in the context of the given Java project. |
public static IRuntimeClasspathEntry | newStringVariableClasspathEntry(String expression) Returns a new runtime classpath entry for the given expression that
may contain string substitution variable references. |
public static IRuntimeClasspathEntry | newVariableRuntimeClasspathEntry(IPath path) Returns a new runtime classpath entry for the classpath
variable with the given path. |
public static void | removeVMInstallChangedListener(IVMInstallChangedListener listener) Removes the given listener from the list of registered VM install changed
listeners. |
public static IRuntimeClasspathEntry[] | resolveRuntimeClasspath(IRuntimeClasspathEntry[] entries, ILaunchConfiguration configuration) Resolves the given classpath, returning the resolved classpath
in the context of the given launch configuration. |
public static IRuntimeClasspathEntry[] | resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, ILaunchConfiguration configuration) Returns resolved entries for the given entry in the context of the given
launch configuration. |
public static IRuntimeClasspathEntry[] | resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, IJavaProject project) Returns resolved entries for the given entry in the context of the given
Java project. |
public static IRuntimeClasspathEntry[] | resolveSourceLookupPath(IRuntimeClasspathEntry[] entries, ILaunchConfiguration configuration) Resolves the given source lookup path, returning the resolved source lookup path
in the context of the given launch configuration. |
public static void | savePreferences() Saves the preferences for the launching plug-in. |
public static void | saveVMConfiguration() Saves the VM configuration information to the preferences. |
public static void | setDefaultVMConnector(IVMConnector connector, IProgressMonitor monitor) Sets a VM connector as the system-wide default VM. |
public static void | setDefaultVMInstall(IVMInstall vm, IProgressMonitor monitor) Sets a VM as the system-wide default VM, and notifies registered VM install
change listeners of the change.
Parameters: vm - The vm to make the default. |
public static void | setDefaultVMInstall(IVMInstall vm, IProgressMonitor monitor, boolean savePreference) Sets a VM as the system-wide default VM, and notifies registered VM install
change listeners of the change.
Parameters: vm - The vm to make the default. |