Class MultiEditor

All Implemented Interfaces:
IAdaptable, IExecutableExtension, IEditorPart, ISaveablePart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPart3, IWorkbenchPartOrientation

public abstract class MultiEditor extends AbstractMultiEditor
A MultiEditor is a composite of editors. This class is intended to be subclassed.
  • Constructor Details

    • MultiEditor

      public MultiEditor()
  • Method Details

    • updateGradient

      public void updateGradient(IEditorPart editor)
      Updates the gradient in the title bar.
      editor - the editor to update; not null
    • drawGradient

      protected abstract void drawGradient(IEditorPart innerEditor, MultiEditor.Gradient g)
      Draw the gradient in the title bar.
    • createInnerPartControl

      public Composite createInnerPartControl(Composite parent, IEditorPart e)
      Create the control of the inner editor. Must be called by subclass.
    • setFocus

      public void setFocus()
      Description copied from interface: IWorkbenchPart
      Asks 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:
      setFocus in interface IWorkbenchPart
      setFocus in class AbstractMultiEditor
    • activateEditor

      public void activateEditor(IEditorPart part)
      Activates the given nested editor.
      activateEditor in class AbstractMultiEditor
      part - the nested editor
    • getShellActivated

      protected boolean getShellActivated()
      Return true if the shell is activated.
    • getInnerEditorContainer

      public Composite getInnerEditorContainer(IEditorReference innerEditorReference)
      Description copied from class: AbstractMultiEditor
      This method is called after createPartControl has been executed and should return the container for the given inner editor.
      Specified by:
      getInnerEditorContainer in class AbstractMultiEditor
      innerEditorReference - a reference to the inner editor that is being created.
      the container in which the inner editor's pane and part controls are to be created.
    • innerEditorsCreated

      protected void innerEditorsCreated()
      Description copied from class: AbstractMultiEditor
      Called as soon as the inner editors have been created and are available.
      Specified by:
      innerEditorsCreated in class AbstractMultiEditor