Class AdvancedSourceLookup
java.lang.Object
org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookup
Static methods for implementing advanced source lookup.
- Since:
- 3.10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IPersistableSourceLocatorcreateSourceLocator(String type, 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:
DebugException
-
createSourceLocator
public static IPersistableSourceLocator createSourceLocator(String type, ILaunchConfiguration configuration) throws CoreException Creates and returns newIPersistableSourceLocatorof the specified type and with the provided configuration.- Throws:
CoreException
-