|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A source presentation is used to resolve an editor in which to display a debug model element, breakpoint, or source element. By default, a debug model presentation (which implements this interface) is used to resolve editors when performing source lookup. However, a source locator may override default editor resolution by implementing this interface.
Source lookup consists of the following steps:
ISourcePresentation
.
When a source presentation is specified as a source locator,
the source presentation is used to resolve an editor, rather
than the default debug model presentation.
Method Summary | |
String |
getEditorId(IEditorInput input,
Object element)
Returns the id of the editor to use to display the given editor input and object, or null if
unable to provide an editor id. |
IEditorInput |
getEditorInput(Object element)
Returns an editor input that should be used to display the given object in an editor or null if unable to provide an editor input
for the given object. |
Method Detail |
public IEditorInput getEditorInput(Object element)
null
if unable to provide an editor input
for the given object.
element
- a debug model element, breakpoint, or a source element
that was returned by a source locator's getSourceElement(IStackFrame)
method
null
if nonepublic String getEditorId(IEditorInput input, Object element)
null
if
unable to provide an editor id.
input
- an editor input that was previously retrieved from this
source presentation's getEditorInput
methodelement
- the object that was used in the call to
getEditorInput
, that corresponds to the given editor
input
null
if none
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |