public interface ISourcePresentation
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.
Clients may implement this interface as part of an
IDebugModelPresentation
or as an optional
extension to an ISourceLocator
.
Modifier and Type | Method and Description |
---|---|
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. |
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)
methodnull
if noneString 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
inputnull
if none
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.