Class DirectorySourceLocation

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.launching.sourcelookup.DirectorySourceLocation
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IJavaSourceLocation

@Deprecated public class DirectorySourceLocation extends org.eclipse.core.runtime.PlatformObject implements IJavaSourceLocation
Deprecated.
In 3.0, the debug platform provides source lookup facilities that should be used in place of the Java source lookup support provided in 2.0. The new facilities provide a source lookup director that coordinates source lookup among a set of participants, searching a set of source containers. See the following packages: org.eclipse.debug.core.sourcelookup and org.eclipse.debug.core.sourcelookup.containers. This class has been replaced by org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer.
Locates source elements in a directory in the local file system. Returns instances of LocalFileStorage.

This class may be instantiated.

Since:
2.0
See Also:
Restriction:
This class is not intended to be subclassed by clients.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Constructs a new empty source location to be initialized from a memento.
    Deprecated.
    Constructs a new source location that will retrieve source elements from the given directory.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Deprecated.
     
    Deprecated.
    Returns an object representing the source code for a type with the specified name, or null if none could be found.
    Deprecated.
    Returns the directory associated with this source location.
    Deprecated.
    Returns a memento for this source location from which this source location can be reconstructed.
    int
    Deprecated.
     
    void
    Deprecated.
    Initializes this source location from the given memento.

    Methods inherited from class org.eclipse.core.runtime.PlatformObject

    getAdapter

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.core.runtime.IAdaptable

    getAdapter
  • Constructor Details

    • DirectorySourceLocation

      public DirectorySourceLocation()
      Deprecated.
      Constructs a new empty source location to be initialized from a memento.
    • DirectorySourceLocation

      public DirectorySourceLocation(File directory)
      Deprecated.
      Constructs a new source location that will retrieve source elements from the given directory.
      Parameters:
      directory - a directory
  • Method Details

    • findSourceElement

      public Object findSourceElement(String name) throws org.eclipse.core.runtime.CoreException
      Deprecated.
      Description copied from interface: IJavaSourceLocation
      Returns an object representing the source code for a type with the specified name, or null if none could be found. The name is a fully qualified type name, and may contain the '$' character when referring to inner types. For example, java.lang.String. The source element returned is implementation specific - for example, a resource, a local file, a zip file entry, etc.
      Specified by:
      findSourceElement in interface IJavaSourceLocation
      Parameters:
      name - fully qualified name of the type for which source is being searched for
      Returns:
      source element
      Throws:
      org.eclipse.core.runtime.CoreException - if an exception occurs while searching for the specified source element
    • getDirectory

      public File getDirectory()
      Deprecated.
      Returns the directory associated with this source location.
      Returns:
      directory
    • equals

      public boolean equals(Object object)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • getMemento

      public String getMemento() throws org.eclipse.core.runtime.CoreException
      Deprecated.
      Description copied from interface: IJavaSourceLocation
      Returns a memento for this source location from which this source location can be reconstructed.
      Specified by:
      getMemento in interface IJavaSourceLocation
      Returns:
      a memento for this source location
      Throws:
      org.eclipse.core.runtime.CoreException - if unable to create a memento
    • initializeFrom

      public void initializeFrom(String memento) throws org.eclipse.core.runtime.CoreException
      Deprecated.
      Description copied from interface: IJavaSourceLocation
      Initializes this source location from the given memento.
      Specified by:
      initializeFrom in interface IJavaSourceLocation
      Parameters:
      memento - a memento generated by this source location
      Throws:
      org.eclipse.core.runtime.CoreException - if unable to initialize this source location