Package org.eclipse.ui.part
Class MultiEditor
- All Implemented Interfaces:
IAdaptable,IExecutableExtension,IEditorPart,ISaveablePart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,IWorkbenchPartOrientation
A MultiEditor is a composite of editors.
This class is intended to be subclassed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe colors used to draw the title bar of the inner editors -
Field Summary
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateEditor(IEditorPart part) Activates the given nested editor.createInnerPartControl(Composite parent, IEditorPart e) Create the control of the inner editor.protected abstract voiddrawGradient(IEditorPart innerEditor, MultiEditor.Gradient g) Draw the gradient in the title bar.getInnerEditorContainer(IEditorReference innerEditorReference) This method is called after createPartControl has been executed and should return the container for the given inner editor.protected booleanReturn true if the shell is activated.protected voidCalled as soon as the inner editors have been created and are available.voidsetFocus()Asks this part to take focus within the workbench.voidupdateGradient(IEditorPart editor) Updates the gradient in the title bar.Methods inherited from class org.eclipse.ui.part.AbstractMultiEditor
dispose, doSave, doSaveAs, getActiveEditor, getIndex, getInnerEditors, handlePropertyChange, init, init, isDirty, isSaveAsAllowed, setChildrenMethods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, createPartControl, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, removePropertyListener
-
Constructor Details
-
MultiEditor
public MultiEditor()
-
-
Method Details
-
updateGradient
Updates the gradient in the title bar.- Parameters:
editor- the editor to update; notnull
-
drawGradient
Draw the gradient in the title bar. -
createInnerPartControl
Create the control of the inner editor. Must be called by subclass. -
setFocus
public void setFocus()Description copied from interface:IWorkbenchPartAsks this part to take focus within the workbench. Parts must assign focus to one of the controls contained in the part's parent composite.Clients should not call this method (the workbench calls this method at appropriate times). To have the workbench activate a part, use
IWorkbenchPage.activate(IWorkbenchPart) instead.- Specified by:
setFocusin interfaceIWorkbenchPart- Overrides:
setFocusin classAbstractMultiEditor
-
activateEditor
Activates the given nested editor.- Overrides:
activateEditorin classAbstractMultiEditor- Parameters:
part- the nested editor- Since:
- 3.5
-
getShellActivated
protected boolean getShellActivated()Return true if the shell is activated. -
getInnerEditorContainer
Description copied from class:AbstractMultiEditorThis method is called after createPartControl has been executed and should return the container for the given inner editor.- Specified by:
getInnerEditorContainerin classAbstractMultiEditor- Parameters:
innerEditorReference- a reference to the inner editor that is being created.- Returns:
- the container in which the inner editor's pane and part controls are to be created.
-
innerEditorsCreated
protected void innerEditorsCreated()Description copied from class:AbstractMultiEditorCalled as soon as the inner editors have been created and are available.- Specified by:
innerEditorsCreatedin classAbstractMultiEditor
-