|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.AbstractMultiEditor
org.eclipse.ui.part.MultiEditor
public abstract class MultiEditor
A MultiEditor is a composite of editors. This class is intended to be subclassed.
Nested Class Summary | |
---|---|
static class |
MultiEditor.Gradient
The colors used to draw the title bar of the inner editors |
Field Summary |
---|
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
MultiEditor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.ui.part.AbstractMultiEditor |
---|
dispose, doSave, doSaveAs, getActiveEditor, getIndex, getInnerEditors, handlePropertyChange, init, init, isDirty, isSaveAsAllowed, setChildren |
Methods inherited from class org.eclipse.ui.part.EditorPart |
---|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName |
Methods 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, showBusy |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public MultiEditor()
Method Detail |
---|
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
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.