Class AdvancedSourceLookup
- java.lang.Object
-
- org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookup
-
public class AdvancedSourceLookup extends Object
Static methods for implementing advanced source lookup.- Since:
- 3.10
-
-
Constructor Summary
Constructors Constructor Description AdvancedSourceLookup()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 StringgetJavaagentString()Returns-javaagentjvm launch argument.static Set<File>getOutputDirectories(IJavaProject project)static booleanisSourceProject(IJavaProject project)Returnstrueif the given project has sources folders,falseotherwise.
-
-
-
Method Detail
-
isSourceProject
public static boolean isSourceProject(IJavaProject project) throws JavaModelException
Returnstrueif the given project has sources folders,falseotherwise.- Throws:
JavaModelException
-
getClasspath
public static Map<File,IPackageFragmentRoot> getClasspath(IJavaProject project) throws JavaModelException
- Throws:
JavaModelException
-
getOutputDirectories
public static Set<File> getOutputDirectories(IJavaProject project) throws JavaModelException
- Throws:
JavaModelException
-
getJavaagentString
public static String getJavaagentString()
Returns-javaagentjvm launch argument.
-
getClassesLocation
public static File getClassesLocation(Object fElement) throws DebugException
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
-
-