Package org.eclipse.ui.internal
Class EditorReference
java.lang.Object
org.eclipse.ui.internal.WorkbenchPartReference
org.eclipse.ui.internal.EditorReference
- All Implemented Interfaces:
IEditorReference
,ISizeProvider
,IWorkbenchPartReference
-
Field Summary
Fields inherited from class org.eclipse.ui.internal.WorkbenchPartReference
INTERNAL_PROPERTY_ACTIVE_CHILD_CHANGED, INTERNAL_PROPERTY_CLOSED, INTERNAL_PROPERTY_MAXIMIZED, INTERNAL_PROPERTY_OPENED, INTERNAL_PROPERTY_PINNED, INTERNAL_PROPERTY_VISIBLE, INTERNAL_PROPERTY_ZOOMED, legacyPart, propertyCache, STATE_CREATED, STATE_CREATION_IN_PROGRESS, STATE_DISPOSED, STATE_LAZY
Fields inherited from interface org.eclipse.ui.ISizeProvider
INFINITE
-
Constructor Summary
ConstructorDescriptionEditorReference
(IEclipseContext windowContext, IWorkbenchPage page, MPart part, IEditorInput input, org.eclipse.ui.internal.registry.EditorDescriptor descriptor, IMemento editorState) -
Method Summary
Modifier and TypeMethodDescriptioncreateErrorPart
(IStatus status) static IEditorInput
createInput
(IMemento editorMem) static void
disposeEditorActionBars
(EditorActionBars actionBars) org.eclipse.ui.internal.registry.EditorDescriptor
getEditor
(boolean restore) Returns the editor referenced by this object.Returns the editor input for the editor referenced by this object.Returns the factory id of the factory used to restore this editor.getId()
getName()
Returns the editor input's name.getSite()
getTitle()
void
initialize
(IWorkbenchPart part) Methods inherited from class org.eclipse.ui.internal.WorkbenchPartReference
addPartPropertyListener, addPropertyListener, checkReference, computePreferredSize, computeTitle, createPartProperties, doDisposeNestedParts, fireInternalPropertyChange, firePartPropertyChange, firePropertyChange, getContentDescription, getModel, getPage, getPane, getPart, getPartName, getPartProperty, getRawTitle, getSizeFlags, getTitleImage, getTitleToolTip, invalidate, isDirty, isDisposed, isPinned, partPropertyChanged, partPropertyChanged, releaseReferences, removePartPropertyListener, removePropertyListener, setPage, setPinned, subscribe, unsubscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IEditorReference
isPinned
Methods inherited from interface org.eclipse.ui.IWorkbenchPartReference
addPartPropertyListener, addPropertyListener, getContentDescription, getPage, getPart, getPartName, getPartProperty, getTitleImage, getTitleToolTip, isDirty, removePartPropertyListener, removePropertyListener
-
Constructor Details
-
EditorReference
public EditorReference(IEclipseContext windowContext, IWorkbenchPage page, MPart part, IEditorInput input, org.eclipse.ui.internal.registry.EditorDescriptor descriptor, IMemento editorState)
-
-
Method Details
-
getDescriptor
public org.eclipse.ui.internal.registry.EditorDescriptor getDescriptor() -
getId
- Specified by:
getId
in interfaceIWorkbenchPartReference
- Overrides:
getId
in classWorkbenchPartReference
- Returns:
- the ID of the part
- See Also:
-
getFactoryId
Description copied from interface:IEditorReference
Returns the factory id of the factory used to restore this editor. Returns null if the editor is not persistable.- Specified by:
getFactoryId
in interfaceIEditorReference
- Returns:
- the factory ID
-
getName
Description copied from interface:IEditorReference
Returns the editor input's name. May return null if the name is not available or if the editor failed to be restored.- Specified by:
getName
in interfaceIEditorReference
- Returns:
- the name
-
getTitle
- Specified by:
getTitle
in interfaceIWorkbenchPartReference
- Overrides:
getTitle
in classWorkbenchPartReference
- Returns:
- the title of the part
- See Also:
-
createInput
- Throws:
PartInitException
-
getEditor
Description copied from interface:IEditorReference
Returns the editor referenced by this object. Returnsnull
if the editor was not instantiated or it failed to be restored. Tries to restore the editor ifrestore
is true.- Specified by:
getEditor
in interfaceIEditorReference
- Parameters:
restore
- true to try to restore, false otherwise.- Returns:
- the
IEditorPart
-
getEditorInput
Description copied from interface:IEditorReference
Returns the editor input for the editor referenced by this object.Unlike most of the other methods on this type, this method can trigger plug-in activation.
- Specified by:
getEditorInput
in interfaceIEditorReference
- Returns:
- the editor input for the editor referenced by this object
- Throws:
PartInitException
- if there was an error restoring the editor input
-
createPart
- Specified by:
createPart
in classWorkbenchPartReference
- Throws:
PartInitException
-
createErrorPart
- Specified by:
createErrorPart
in classWorkbenchPartReference
-
initialize
- Specified by:
initialize
in classWorkbenchPartReference
- Throws:
PartInitException
-
getSite
- Specified by:
getSite
in classWorkbenchPartReference
-
disposeEditorActionBars
-