public abstract class MultiEditor extends AbstractMultiEditor
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiEditor.Gradient
The colors used to draw the title bar of the inner editors
|
PROP_DIRTY, PROP_INPUTPROP_TITLE| Constructor and Description |
|---|
MultiEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateEditor(IEditorPart part)
Activates the given nested editor.
|
Composite |
createInnerPartControl(Composite parent,
IEditorPart e)
Create the control of the inner editor.
|
protected abstract void |
drawGradient(IEditorPart innerEditor,
MultiEditor.Gradient g)
Draw the gradient in the title bar.
|
Composite |
getInnerEditorContainer(IEditorReference innerEditorReference)
This method is called after createPartControl has been executed and
should return the container for the given inner editor.
|
protected boolean |
getShellActivated()
Return true if the shell is activated.
|
protected void |
innerEditorsCreated()
Called as soon as the inner editors have been created and are available.
|
void |
setFocus()
Asks this part to take focus within the workbench.
|
void |
updateGradient(IEditorPart editor)
Updates the gradient in the title bar.
|
dispose, doSave, doSaveAs, getActiveEditor, getIndex, getInnerEditors, handlePropertyChange, init, init, isDirty, isSaveAsAllowed, setChildrencheckSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameaddPartPropertyListener, addPropertyListener, createPartControl, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyListener, createPartControl, getSite, getTitle, getTitleImage, removePropertyListenergetAdapterpublic void updateGradient(IEditorPart editor)
editor - protected abstract void drawGradient(IEditorPart innerEditor, MultiEditor.Gradient g)
public Composite createInnerPartControl(Composite parent, IEditorPart e)
public void setFocus()
IWorkbenchPart
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.
setFocus in interface IWorkbenchPartsetFocus in class AbstractMultiEditorpublic void activateEditor(IEditorPart part)
activateEditor in class AbstractMultiEditorpart - the nested editorprotected boolean getShellActivated()
public Composite getInnerEditorContainer(IEditorReference innerEditorReference)
AbstractMultiEditorgetInnerEditorContainer in class AbstractMultiEditorinnerEditorReference - a reference to the inner editor that is being created.protected void innerEditorsCreated()
AbstractMultiEditorinnerEditorsCreated in class AbstractMultiEditor
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.