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_INPUT
PROP_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, setChildren
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, createPartControl, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, removePropertyListener
getAdapter
public 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 IWorkbenchPart
setFocus
in class AbstractMultiEditor
public void activateEditor(IEditorPart part)
activateEditor
in class AbstractMultiEditor
part
- the nested editorprotected boolean getShellActivated()
public Composite getInnerEditorContainer(IEditorReference innerEditorReference)
AbstractMultiEditor
getInnerEditorContainer
in class AbstractMultiEditor
innerEditorReference
- a reference to the inner editor that is being created.protected void innerEditorsCreated()
AbstractMultiEditor
innerEditorsCreated
in class AbstractMultiEditor
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.