|
||||||||||
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.CDirectorySourceLocation
public class CDirectorySourceLocation
Locates source elements in a directory in the local
file system. Returns instances of FileStorage
.
Constructor Summary | |
---|---|
CDirectorySourceLocation()
Constructor for CDirectorySourceLocation. |
|
CDirectorySourceLocation(org.eclipse.core.runtime.IPath directory,
org.eclipse.core.runtime.IPath association,
boolean searchSubfolders)
Constructor for CDirectorySourceLocation. |
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)
|
org.eclipse.core.runtime.IPath |
getAssociation()
|
org.eclipse.core.runtime.IPath |
getDirectory()
Returns the root directory of this source location. |
void |
getDirectory(org.eclipse.core.runtime.IPath path)
|
java.lang.String |
getMemento()
Returns a memento for this source location from which this source location can be reconstructed. |
void |
initializeFrom(java.lang.String memento)
Initializes this source location from the given memento. |
boolean |
searchForDuplicateFiles()
Returns whether to search for all source elements, or just the first match. |
boolean |
searchSubfolders()
|
void |
setAssociation(org.eclipse.core.runtime.IPath association)
|
void |
setSearchForDuplicateFiles(boolean search)
Sets the value of the 'search for duplicate source files' flag. |
void |
setSearchSubfolders(boolean search)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CDirectorySourceLocation()
public CDirectorySourceLocation(org.eclipse.core.runtime.IPath directory, org.eclipse.core.runtime.IPath association, boolean searchSubfolders)
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.runtime.IPath getDirectory()
getDirectory
in interface IDirectorySourceLocation
public void getDirectory(org.eclipse.core.runtime.IPath path)
public void setAssociation(org.eclipse.core.runtime.IPath association)
public org.eclipse.core.runtime.IPath getAssociation()
getAssociation
in interface IDirectorySourceLocation
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 equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setSearchForDuplicateFiles(boolean search)
ICSourceLocation
setSearchForDuplicateFiles
in interface ICSourceLocation
search
- - a value to setpublic boolean searchForDuplicateFiles()
ICSourceLocation
searchForDuplicateFiles
in interface ICSourceLocation
public boolean searchSubfolders()
searchSubfolders
in interface IDirectorySourceLocation
public void setSearchSubfolders(boolean search)
public java.lang.String toString()
toString
in class java.lang.Object
public void dispose()
dispose
in interface ICSourceLocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |