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 SummaryFields inherited from class org.eclipse.ui.internal.WorkbenchPartReferenceINTERNAL_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.ISizeProviderINFINITE
- 
Constructor SummaryConstructorsConstructorDescriptionEditorReference(IEclipseContext windowContext, IWorkbenchPage page, MPart part, IEditorInput input, org.eclipse.ui.internal.registry.EditorDescriptor descriptor, IMemento editorState) 
- 
Method SummaryModifier 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.WorkbenchPartReferenceaddPartPropertyListener, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IEditorReferenceisPinnedMethods inherited from interface org.eclipse.ui.IWorkbenchPartReferenceaddPartPropertyListener, addPropertyListener, getContentDescription, getPage, getPart, getPartName, getPartProperty, getTitleImage, getTitleToolTip, isDirty, removePartPropertyListener, removePropertyListener
- 
Constructor Details- 
EditorReferencepublic EditorReference(IEclipseContext windowContext, IWorkbenchPage page, MPart part, IEditorInput input, org.eclipse.ui.internal.registry.EditorDescriptor descriptor, IMemento editorState) 
 
- 
- 
Method Details- 
getDescriptorpublic org.eclipse.ui.internal.registry.EditorDescriptor getDescriptor()
- 
getId- Specified by:
- getIdin interface- IWorkbenchPartReference
- Overrides:
- getIdin class- WorkbenchPartReference
- Returns:
- the ID of the part
- See Also:
 
- 
getFactoryIdDescription 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 interface- IEditorReference
- Returns:
- the factory ID
 
- 
getNameDescription 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 interface- IEditorReference
- Returns:
- the name
 
- 
getTitle- Specified by:
- getTitlein interface- IWorkbenchPartReference
- Overrides:
- getTitlein class- WorkbenchPartReference
- Returns:
- the title of the part
- See Also:
 
- 
createInput- Throws:
- PartInitException
 
- 
getEditorDescription 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 interface- IEditorReference
- Parameters:
- restore- true to try to restore, false otherwise.
- Returns:
- the IEditorPart
 
- 
getEditorInputDescription 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 interface- IEditorReference
- 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 class- WorkbenchPartReference
- Throws:
- PartInitException
 
- 
createErrorPart- Specified by:
- createErrorPartin class- WorkbenchPartReference
 
- 
initialize- Specified by:
- initializein class- WorkbenchPartReference
- Throws:
- PartInitException
 
- 
getSite- Specified by:
- getSitein class- WorkbenchPartReference
 
- 
disposeEditorActionBars
 
-