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_LAZYFields inherited from interface org.eclipse.ui.ISizeProvider
INFINITE -
Constructor Summary
ConstructorsConstructorDescriptionEditorReference(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 IEditorInputcreateInput(IMemento editorMem) static voiddisposeEditorActionBars(EditorActionBars actionBars) org.eclipse.ui.internal.registry.EditorDescriptorgetEditor(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()voidinitialize(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, unsubscribeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IEditorReference
isPinnedMethods 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:
getIdin interfaceIWorkbenchPartReference- Overrides:
getIdin classWorkbenchPartReference- Returns:
- the ID of the part
- See Also:
-
getFactoryId
Description copied from interface:IEditorReferenceReturns the factory id of the factory used to restore this editor. Returns null if the editor is not persistable.- Specified by:
getFactoryIdin interfaceIEditorReference- Returns:
- the factory ID
-
getName
Description copied from interface:IEditorReferenceReturns the editor input's name. May return null if the name is not available or if the editor failed to be restored.- Specified by:
getNamein interfaceIEditorReference- Returns:
- the name
-
getTitle
- Specified by:
getTitlein interfaceIWorkbenchPartReference- Overrides:
getTitlein classWorkbenchPartReference- Returns:
- the title of the part
- See Also:
-
createInput
- Throws:
PartInitException
-
getEditor
Description copied from interface:IEditorReferenceReturns the editor referenced by this object. Returnsnullif the editor was not instantiated or it failed to be restored. Tries to restore the editor ifrestoreis true.- Specified by:
getEditorin interfaceIEditorReference- Parameters:
restore- true to try to restore, false otherwise.- Returns:
- the
IEditorPart
-
getEditorInput
Description copied from interface:IEditorReferenceReturns 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:
getEditorInputin 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:
createPartin classWorkbenchPartReference- Throws:
PartInitException
-
createErrorPart
- Specified by:
createErrorPartin classWorkbenchPartReference
-
initialize
- Specified by:
initializein classWorkbenchPartReference- Throws:
PartInitException
-
getSite
- Specified by:
getSitein classWorkbenchPartReference
-
disposeEditorActionBars
-