|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICSourceLocator
A C/C++ extension of ISourceLocator
.
Provides constants and methods to manage different source modes.
Method Summary | |
---|---|
boolean |
contains(org.eclipse.core.resources.IResource resource)
Returns whether this locator is able to locate the given resource. |
java.lang.Object |
findSourceElement(java.lang.String fileName)
Returns an object representing the source code for a type with the specified name, or null
if none could be found. |
int |
getLineNumber(org.eclipse.debug.core.model.IStackFrame stackFrame)
Returns the line number of the instruction pointer in the specified stack frame that corresponds to a line in an associated source element, or -1 if line number information is unavailable. |
org.eclipse.core.resources.IProject |
getProject()
Returns the project this source locator is associated with or null . |
ICSourceLocation[] |
getSourceLocations()
Returns the source locations of this locator. |
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. |
void |
setSourceLocations(ICSourceLocation[] locations)
Sets the source locations of this locator. |
Methods inherited from interface org.eclipse.debug.core.model.ISourceLocator |
---|
getSourceElement |
Method Detail |
---|
org.eclipse.core.resources.IProject getProject()
null
.
null
int getLineNumber(org.eclipse.debug.core.model.IStackFrame stackFrame)
frameInfo
- the frame data
ICSourceLocation[] getSourceLocations()
void setSourceLocations(ICSourceLocation[] locations)
location
- - an array of source locationsboolean contains(org.eclipse.core.resources.IResource resource)
resource
- the resource to locate
java.lang.Object findSourceElement(java.lang.String fileName)
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
boolean searchForDuplicateFiles()
void setSearchForDuplicateFiles(boolean search)
search
- - a value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |