Class AdvancedSourceLookup
java.lang.Object
org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookup
Static methods for implementing advanced source lookup.
- Since:
- 3.10
- Provisional:
- This is part of work in progress and can be changed, moved or removed without notice
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.debug.core.model.IPersistableSourceLocator
createSourceLocator
(String type, org.eclipse.debug.core.ILaunchConfiguration configuration) Creates and returns newIPersistableSourceLocator
of the specified type and with the provided configuration.static File
getClassesLocation
(Object fElement) Returns filesystem classes location that corresponds to the given debug element, ornull
if the location cannot be determined.static Map<File,
IPackageFragmentRoot> getClasspath
(IJavaProject project) static String
Returns-javaagent
jvm launch argument.getOutputDirectories
(IJavaProject project) static boolean
isSourceProject
(IJavaProject project) Returnstrue
if the given project has sources folders,false
otherwise.
-
Constructor Details
-
AdvancedSourceLookup
public AdvancedSourceLookup()
-
-
Method Details
-
isSourceProject
Returnstrue
if the given project has sources folders,false
otherwise.- Throws:
JavaModelException
-
getClasspath
public static Map<File,IPackageFragmentRoot> getClasspath(IJavaProject project) throws JavaModelException - Throws:
JavaModelException
-
getOutputDirectories
- Throws:
JavaModelException
-
getJavaagentString
Returns-javaagent
jvm launch argument. -
getClassesLocation
Returns filesystem classes location that corresponds to the given debug element, ornull
if the location cannot be determined.- Throws:
org.eclipse.debug.core.DebugException
-
createSourceLocator
public static org.eclipse.debug.core.model.IPersistableSourceLocator createSourceLocator(String type, org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException Creates and returns newIPersistableSourceLocator
of the specified type and with the provided configuration.- Throws:
org.eclipse.core.runtime.CoreException
-