Class JavaProjectSourceLocation
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.launching.sourcelookup.JavaProjectSourceLocation
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,IJavaSourceLocation
@Deprecated
public class JavaProjectSourceLocation
extends org.eclipse.core.runtime.PlatformObject
implements IJavaSourceLocation
Deprecated.
Locates source elements in all source folders of the given Java project. Returns instances of
ICompilationUnit
and
IClassFile
.
This class may be instantiated.
- Since:
- 2.0
- See Also:
- Restriction:
- This class is not intended to be sub-classed by clients.
-
Constructor Summary
ConstructorDescriptionDeprecated.Constructs a new empty source location to be initialized by a memento.JavaProjectSourceLocation
(IJavaProject project) Deprecated.Constructs a new source location that will retrieve source elements from the given Java project. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.findSourceElement
(String name) Deprecated.Returns an object representing the source code for a type with the specified name, ornull
if none could be found.Deprecated.Returns the Java project associated with this source location.Deprecated.Returns a memento for this source location from which this source location can be reconstructed.int
hashCode()
Deprecated.void
initializeFrom
(String memento) 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
-
JavaProjectSourceLocation
public JavaProjectSourceLocation()Deprecated.Constructs a new empty source location to be initialized by a memento. -
JavaProjectSourceLocation
Deprecated.Constructs a new source location that will retrieve source elements from the given Java project.- Parameters:
project
- Java project
-
-
Method Details
-
findSourceElement
Deprecated.Description copied from interface:IJavaSourceLocation
Returns an object representing the source code for a type with the specified name, ornull
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 interfaceIJavaSourceLocation
- 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
-
getJavaProject
Deprecated.Returns the Java project associated with this source location.- Returns:
- Java project
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
getMemento
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 interfaceIJavaSourceLocation
- Returns:
- a memento for this source location
- Throws:
org.eclipse.core.runtime.CoreException
- if unable to create a memento
-
initializeFrom
Deprecated.Description copied from interface:IJavaSourceLocation
Initializes this source location from the given memento.- Specified by:
initializeFrom
in interfaceIJavaSourceLocation
- Parameters:
memento
- a memento generated by this source location- Throws:
org.eclipse.core.runtime.CoreException
- if unable to initialize this source location
-
org.eclipse.debug.core.sourcelookup
andorg.eclipse.debug.core.sourcelookup.containers
. This class has been replaced byorg.eclipse.jdt.launching.sourcelookup.containers.JavaProjectSourceContainer
.