public class AdvancedSourceLookup
extends java.lang.Object
| Constructor and Description |
|---|
AdvancedSourceLookup() |
| Modifier and Type | Method and Description |
|---|---|
static IPersistableSourceLocator |
createSourceLocator(java.lang.String type,
ILaunchConfiguration configuration)
Creates and returns new
IPersistableSourceLocator of the specified type and with the provided configuration. |
static java.io.File |
getClassesLocation(java.lang.Object fElement)
Returns filesystem classes location that corresponds to the given debug element, or
null if the location cannot be determined. |
static java.util.Map<java.io.File,IPackageFragmentRoot> |
getClasspath(IJavaProject project) |
static java.lang.String |
getJavaagentString()
Returns
-javaagent jvm launch argument. |
static java.util.Set<java.io.File> |
getOutputDirectories(IJavaProject project) |
static boolean |
isSourceProject(IJavaProject project)
Returns
true if the given project has sources folders, false otherwise. |
public static boolean isSourceProject(IJavaProject project)
throws JavaModelException
true if the given project has sources folders, false otherwise.JavaModelExceptionpublic static java.util.Map<java.io.File,IPackageFragmentRoot> getClasspath(IJavaProject project)
throws JavaModelException
JavaModelExceptionpublic static java.util.Set<java.io.File> getOutputDirectories(IJavaProject project)
throws JavaModelException
JavaModelExceptionpublic static java.lang.String getJavaagentString()
-javaagent jvm launch argument.public static java.io.File getClassesLocation(java.lang.Object fElement)
throws DebugException
null if the location cannot be determined.DebugExceptionpublic static IPersistableSourceLocator createSourceLocator(java.lang.String type,
ILaunchConfiguration configuration)
throws CoreException
IPersistableSourceLocator of the specified type and with the provided configuration.CoreException