public class AdvancedSourceLookup extends Object
Constructor and Description |
---|
AdvancedSourceLookup() |
Modifier and Type | Method and Description |
---|---|
static IPersistableSourceLocator |
createSourceLocator(String type,
ILaunchConfiguration configuration)
Creates and returns new
IPersistableSourceLocator 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, or
null if the location cannot be determined. |
static Map<File,IPackageFragmentRoot> |
getClasspath(IJavaProject project) |
static String |
getJavaagentString()
Returns
-javaagent jvm launch argument. |
static Set<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.JavaModelException
public static Map<File,IPackageFragmentRoot> getClasspath(IJavaProject project) throws JavaModelException
JavaModelException
public static Set<File> getOutputDirectories(IJavaProject project) throws JavaModelException
JavaModelException
public static String getJavaagentString()
-javaagent
jvm launch argument.public static File getClassesLocation(Object fElement) throws DebugException
null
if the location cannot be determined.DebugException
public static IPersistableSourceLocator createSourceLocator(String type, ILaunchConfiguration configuration) throws CoreException
IPersistableSourceLocator
of the specified type and with the provided configuration.CoreException
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.