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
Provisional:
This is part of work in progress and can be changed, moved or removed without notice
  • Constructor Details

    • AdvancedSourceLookup

      public AdvancedSourceLookup()
  • Method Details

    • isSourceProject

      public static boolean isSourceProject(IJavaProject project) throws JavaModelException
      Returns true if the given project has sources folders, false otherwise.
      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 -javaagent jvm launch argument.
    • getClassesLocation

      public static File getClassesLocation(Object fElement) throws org.eclipse.debug.core.DebugException
      Returns filesystem classes location that corresponds to the given debug element, or null if 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 new IPersistableSourceLocator of the specified type and with the provided configuration.
      Throws:
      org.eclipse.core.runtime.CoreException