public interface IEditorReference extends IWorkbenchPartReference
getEditor(boolean)
is
called with true.
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
IEditorPart |
getEditor(boolean restore)
Returns the editor referenced by this object.
|
IEditorInput |
getEditorInput()
Returns the editor input for the editor referenced by this object.
|
String |
getFactoryId()
Returns the factory id of the factory used to
restore this editor.
|
String |
getName()
Returns the editor input's name.
|
boolean |
isPinned()
Returns true if the editor is pinned, otherwise returns false.
|
addPartPropertyListener, addPropertyListener, getContentDescription, getId, getPage, getPart, getPartName, getPartProperty, getTitle, getTitleImage, getTitleToolTip, isDirty, removePartPropertyListener, removePropertyListener
String getFactoryId()
String getName()
IEditorPart getEditor(boolean restore)
null
if the editor was not instantiated or
it failed to be restored. Tries to restore the editor
if restore
is true.boolean isPinned()
IEditorInput getEditorInput() throws PartInitException
Unlike most of the other methods on this type, this method can trigger plug-in activation.
PartInitException
- if there was an error restoring the editor input
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.