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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.debug.core.model.IPersistableSourceLocatorcreateSourceLocator(String type, org.eclipse.debug.core.ILaunchConfiguration configuration) Creates and returns newIPersistableSourceLocatorof the specified type and with the provided configuration.static FilegetClassesLocation(Object fElement) Returns filesystem classes location that corresponds to the given debug element, ornullif the location cannot be determined.static Map<File, IPackageFragmentRoot> getClasspath(IJavaProject project) static StringReturns-javaagentjvm launch argument.getOutputDirectories(IJavaProject project) static booleanisSourceProject(IJavaProject project) Returnstrueif the given project has sources folders,falseotherwise.
-
Constructor Details
-
AdvancedSourceLookup
public AdvancedSourceLookup()
-
-
Method Details
-
isSourceProject
Returnstrueif the given project has sources folders,falseotherwise.- Throws:
JavaModelException
-
getClasspath
public static Map<File,IPackageFragmentRoot> getClasspath(IJavaProject project) throws JavaModelException - Throws:
JavaModelException
-
getOutputDirectories
- Throws:
JavaModelException
-
getJavaagentString
Returns-javaagentjvm launch argument. -
getClassesLocation
Returns filesystem classes location that corresponds to the given debug element, ornullif 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 newIPersistableSourceLocatorof the specified type and with the provided configuration.- Throws:
org.eclipse.core.runtime.CoreException
-