|
||||||||||
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.CSourceManager
public class CSourceManager
Locates sources for a C/C++ debug session.
Constructor Summary | |
---|---|
CSourceManager(org.eclipse.debug.core.model.ISourceLocator sourceLocator)
Constructor for CSourceManager. |
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. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
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)
|
boolean |
searchForDuplicateFiles()
Returns whether to search for all source elements, or just the first match. |
void |
setDebugTarget(CDebugTarget target)
|
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 CSourceManager(org.eclipse.debug.core.model.ISourceLocator sourceLocator)
Method Detail |
---|
public int getLineNumber(org.eclipse.debug.core.model.IStackFrame frame)
ICSourceLocator
getLineNumber
in interface ICSourceLocator
public ICSourceLocation[] getSourceLocations()
ICSourceLocator
getSourceLocations
in interface ICSourceLocator
public void setSourceLocations(ICSourceLocation[] locations)
ICSourceLocator
setSourceLocations
in interface ICSourceLocator
public boolean contains(org.eclipse.core.resources.IResource resource)
ICSourceLocator
contains
in interface ICSourceLocator
resource
- the resource to locate
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public java.lang.Object getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
getSourceElement
in interface org.eclipse.debug.core.model.ISourceLocator
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 org.eclipse.core.resources.IProject getProject()
ICSourceLocator
null
.
getProject
in interface ICSourceLocator
null
public void setDebugTarget(CDebugTarget target)
public void setSearchForDuplicateFiles(boolean search)
ICSourceLocator
setSearchForDuplicateFiles
in interface ICSourceLocator
search
- - a value to setpublic boolean searchForDuplicateFiles()
ICSourceLocator
searchForDuplicateFiles
in interface ICSourceLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |