Package org.eclipse.ui
Interface IReusableEditor
- All Superinterfaces:
IAdaptable,IEditorPart,ISaveablePart,IWorkbenchPart
- All Known Implementing Classes:
AbstractDecoratedTextEditor,AbstractTextEditor,CommonSourceNotFoundEditor,CompareEditor,StatusTextEditor,TextEditor
Interface for reusable editors.
An editors may support changing its input so that the workbench may change
its contents instead of opening a new editor.
-
Field Summary
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Method Summary
Modifier and TypeMethodDescriptionvoidsetInput(IEditorInput input) Sets the input to this editor.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSite, initMethods inherited from interface org.eclipse.ui.ISaveablePart
doSave, doSaveAs, isDirty, isSaveAsAllowed, isSaveOnCloseNeededMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
-
Method Details
-
setInput
Sets the input to this editor.Note: Clients must fire the
IEditorPart.PROP_INPUTproperty change within their implementation ofsetInput().- Parameters:
input- the editor input
-