Package org.eclipse.jdt.launching
Class StandardClasspathProvider
java.lang.Object
org.eclipse.jdt.launching.StandardClasspathProvider
- All Implemented Interfaces:
IRuntimeClasspathProvider
- Direct Known Subclasses:
StandardSourcePathProvider
Default implementation for classpath provider.
This class may be sub-classed.
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeUnresolvedClasspath
(org.eclipse.debug.core.ILaunchConfiguration configuration) Computes and returns an unresolved classpath for the given launch configuration.protected IRuntimeClasspathEntry[]
recoverRuntimePath
(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute) Returns a collection of runtime classpath entries that are defined in the specified attribute of the given launch configuration.resolveClasspath
(IRuntimeClasspathEntry[] entries, org.eclipse.debug.core.ILaunchConfiguration configuration) Returns the resolved path corresponding to the given path, in the context of the given launch configuration.
-
Constructor Details
-
StandardClasspathProvider
public StandardClasspathProvider()
-
-
Method Details
-
computeUnresolvedClasspath
public IRuntimeClasspathEntry[] computeUnresolvedClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException Description copied from interface:IRuntimeClasspathProvider
Computes and returns an unresolved classpath for the given launch configuration. Variable and container entries are not resolved.- Specified by:
computeUnresolvedClasspath
in interfaceIRuntimeClasspathProvider
- Parameters:
configuration
- launch configuration- Returns:
- unresolved path
- Throws:
org.eclipse.core.runtime.CoreException
- if unable to compute a path
-
resolveClasspath
public IRuntimeClasspathEntry[] resolveClasspath(IRuntimeClasspathEntry[] entries, org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException Description copied from interface:IRuntimeClasspathProvider
Returns the resolved path corresponding to the given path, in the context of the given launch configuration. Variable and container entries are resolved. The returned (resolved) path need not have the same number of entries as the given (unresolved) path.- Specified by:
resolveClasspath
in interfaceIRuntimeClasspathProvider
- Parameters:
entries
- entries to resolveconfiguration
- launch configuration context to resolve in- Returns:
- resolved path
- Throws:
org.eclipse.core.runtime.CoreException
- if unable to resolve a path
-
recoverRuntimePath
protected IRuntimeClasspathEntry[] recoverRuntimePath(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute) throws org.eclipse.core.runtime.CoreException Returns a collection of runtime classpath entries that are defined in the specified attribute of the given launch configuration. When present, the attribute must contain a list of runtime classpath entry mementos.- Parameters:
configuration
- launch configurationattribute
- attribute name containing the list of entries- Returns:
- collection of runtime classpath entries that are defined in the specified attribute of the given launch configuration
- Throws:
org.eclipse.core.runtime.CoreException
- if unable to retrieve the list
-