Package org.eclipse.jdt.launching
Class StandardSourcePathProvider
java.lang.Object
org.eclipse.jdt.launching.StandardClasspathProvider
org.eclipse.jdt.launching.StandardSourcePathProvider
- All Implemented Interfaces:
IRuntimeClasspathProvider
Default implementation of source lookup path computation and resolution.
This class may be sub-classed.
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
If the given entry is an archive, adds any archives referenced by the associated manifest.computeUnresolvedClasspath
(org.eclipse.debug.core.ILaunchConfiguration configuration) Computes and returns an unresolved classpath for 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.Methods inherited from class org.eclipse.jdt.launching.StandardClasspathProvider
recoverRuntimePath
-
Constructor Details
-
StandardSourcePathProvider
public StandardSourcePathProvider()
-
-
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
- Overrides:
computeUnresolvedClasspath
in classStandardClasspathProvider
- 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
- Overrides:
resolveClasspath
in classStandardClasspathProvider
- 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
-
addManifestReferences
protected void addManifestReferences(IRuntimeClasspathEntry entry, List<IRuntimeClasspathEntry> all) If the given entry is an archive, adds any archives referenced by the associated manifest.- Parameters:
entry
- runtime classpath entryall
- list to add references to
-