|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.debug.internal.core.sourcelookup.CProjectSourceLocation
public class CProjectSourceLocation
Locates source elements in a Java project. Returns instances of IFile
.
Constructor Summary | |
---|---|
CProjectSourceLocation()
Constructor for CProjectSourceLocation. |
|
CProjectSourceLocation(org.eclipse.core.resources.IProject project)
Constructor for CProjectSourceLocation. |
|
CProjectSourceLocation(org.eclipse.core.resources.IProject project,
boolean generated)
Constructor for CProjectSourceLocation. |
Method Summary | |
---|---|
void |
dispose()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
findSourceElement(java.lang.String name)
Returns an object representing the source code for a file with the specified name, or null
if none could be found. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
java.lang.String |
getMemento()
Returns a memento for this source location from which this source location can be reconstructed. |
org.eclipse.core.resources.IProject |
getProject()
Returns the project associated with this source location. |
void |
initializeFrom(java.lang.String memento)
Initializes this source location from the given memento. |
boolean |
isGeneric()
|
boolean |
searchForDuplicateFiles()
Returns whether to search for all source elements, or just the first match. |
void |
setGenerated(boolean b)
|
void |
setSearchForDuplicateFiles(boolean search)
Sets the value of the 'search for duplicate source files' flag. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CProjectSourceLocation()
public CProjectSourceLocation(org.eclipse.core.resources.IProject project)
public CProjectSourceLocation(org.eclipse.core.resources.IProject project, boolean generated)
Method Detail |
---|
public java.lang.Object findSourceElement(java.lang.String name) throws org.eclipse.core.runtime.CoreException
ICSourceLocation
null
if none could be found. The source element
returned is implementation specific - for example, a
resource, a local file, a zip file entry, etc.
findSourceElement
in interface ICSourceLocation
name
- the name of the object for which source is being searched for
org.eclipse.core.runtime.CoreException
- if an exception occurs while searching for the specified source elementpublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public org.eclipse.core.resources.IProject getProject()
getProject
in interface IProjectSourceLocation
public void dispose()
dispose
in interface ICSourceLocation
public java.lang.String getMemento() throws org.eclipse.core.runtime.CoreException
ICSourceLocation
getMemento
in interface ICSourceLocation
org.eclipse.core.runtime.CoreException
- if unable to create a mementopublic void initializeFrom(java.lang.String memento) throws org.eclipse.core.runtime.CoreException
ICSourceLocation
initializeFrom
in interface ICSourceLocation
memento
- a memento generated by this source location
org.eclipse.core.runtime.CoreException
- if unable to initialize this source
locationpublic boolean isGeneric()
isGeneric
in interface IProjectSourceLocation
public void setGenerated(boolean b)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean searchForDuplicateFiles()
ICSourceLocation
searchForDuplicateFiles
in interface ICSourceLocation
public void setSearchForDuplicateFiles(boolean search)
ICSourceLocation
setSearchForDuplicateFiles
in interface ICSourceLocation
search
- - a value to setpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |