|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICSourceLocation
A source location defines the location of a repository of source code. A source location is capable of retrieving source elements.
For example, a source location could be a project, zip/archive file, or a directory in the file system.
Method Summary | |
---|---|
void |
dispose()
|
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.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. |
void |
setSearchForDuplicateFiles(boolean search)
Sets the value of the 'search for duplicate source files' flag. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
java.lang.Object findSourceElement(java.lang.String name) throws org.eclipse.core.runtime.CoreException
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.
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 elementjava.lang.String getMemento() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
- if unable to create a mementovoid initializeFrom(java.lang.String memento) throws org.eclipse.core.runtime.CoreException
memento
- a memento generated by this source location
org.eclipse.core.runtime.CoreException
- if unable to initialize this source
locationboolean searchForDuplicateFiles()
void setSearchForDuplicateFiles(boolean search)
search
- - a value to setvoid dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |