Class JavaSourcePathComputer
java.lang.Object
org.eclipse.jdt.launching.sourcelookup.containers.JavaSourcePathComputer
- All Implemented Interfaces:
org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate
public class JavaSourcePathComputer
extends Object
implements org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate
Computes a default source lookup path for Java applications.
The source path provider associated with a launch configuration is consulted
to compute a source lookup path. The source path provider is determined
by the
ATTR_SOURCE_PATH_PROVIDER
launch configuration attribute,
which defaults to the StandardSourcePathProvider
when unspecified.
The source path provider computes a collection of IRuntimeClasspathEntry
's
which are translated to source containers (ISourceContainer
).
Clients may subclass this class.
- Since:
- 3.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.debug.core.sourcelookup.ISourceContainer[]
computeSourceContainers
(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) getId()
-
Field Details
-
ID
Unique identifier for the local Java source path computer (valueorg.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer
).- See Also:
-
-
Constructor Details
-
JavaSourcePathComputer
public JavaSourcePathComputer()
-
-
Method Details
-
getId
-
computeSourceContainers
public org.eclipse.debug.core.sourcelookup.ISourceContainer[] computeSourceContainers(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException - Specified by:
computeSourceContainers
in interfaceorg.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate
- Throws:
org.eclipse.core.runtime.CoreException
-