|
||||||||||
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.CSourceLocator
public class CSourceLocator
Default source locator.
Constructor Summary | |
---|---|
CSourceLocator(org.eclipse.core.resources.IProject project)
Constructor for CSourceLocator. |
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. |
static ICSourceLocation[] |
getDefaultSourceLocations(org.eclipse.core.resources.IProject project)
Returns a default collection of source locations for the given project. |
int |
getLineNumber(org.eclipse.debug.core.model.IStackFrame frame)
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. |
java.lang.String |
getMemento()
|
org.eclipse.core.resources.IProject |
getProject()
Returns the project this source locator is associated with or null . |
java.lang.Object |
getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
|
ICSourceLocation[] |
getSourceLocations()
Returns the source locations of this locator. |
void |
initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
void |
initializeFromMemento(java.lang.String memento)
|
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
|
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 class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSourceLocator(org.eclipse.core.resources.IProject project)
Method Detail |
---|
public java.lang.Object getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
getSourceElement
in interface org.eclipse.debug.core.model.ISourceLocator
public int getLineNumber(org.eclipse.debug.core.model.IStackFrame frame)
ICSourceLocator
getLineNumber
in interface ICSourceLocator
public boolean contains(org.eclipse.core.resources.IResource resource)
ICSourceLocator
contains
in interface ICSourceLocator
resource
- the resource to locate
public ICSourceLocation[] getSourceLocations()
ICSourceLocator
getSourceLocations
in interface ICSourceLocator
public void setSourceLocations(ICSourceLocation[] locations)
ICSourceLocator
setSourceLocations
in interface ICSourceLocator
public static ICSourceLocation[] getDefaultSourceLocations(org.eclipse.core.resources.IProject project)
project
- a project
org.eclipse.core.runtime.CoreException
public java.lang.Object findSourceElement(java.lang.String fileName)
ICSourceLocator
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 ICSourceLocator
public java.lang.String getMemento() throws org.eclipse.core.runtime.CoreException
getMemento
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
public void initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
initializeDefaults
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
public void initializeFromMemento(java.lang.String memento) throws org.eclipse.core.runtime.CoreException
initializeFromMemento
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged
in interface org.eclipse.core.resources.IResourceChangeListener
public org.eclipse.core.resources.IProject getProject()
ICSourceLocator
null
.
getProject
in interface ICSourceLocator
null
public boolean searchForDuplicateFiles()
ICSourceLocator
searchForDuplicateFiles
in interface ICSourceLocator
public void setSearchForDuplicateFiles(boolean search)
ICSourceLocator
setSearchForDuplicateFiles
in interface ICSourceLocator
search
- - a value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |