public abstract class MultiPageEditorActionBarContributor extends EditorActionBarContributor
Subclasses must implement setActivePage
, and may reimplement
any of the following methods:
contributeToMenu
- reimplement to contribute to menucontributeToToolBar
- reimplement to contribute to tool
barcontributeToStatusLine
- reimplement to contribute to
status lineModifier | Constructor and Description |
---|---|
protected |
MultiPageEditorActionBarContributor()
Creates a multi-page editor action contributor.
|
Modifier and Type | Method and Description |
---|---|
void |
setActiveEditor(IEditorPart part)
Sets the active editor for the contributor.
|
abstract void |
setActivePage(IEditorPart activeEditor)
Sets the active page of the the multi-page editor to be the given editor.
|
contributeToCoolBar, contributeToMenu, contributeToStatusLine, contributeToToolBar, dispose, getActionBars, getPage, init, init
protected MultiPageEditorActionBarContributor()
public void setActiveEditor(IEditorPart part)
EditorActionBarContributor
The EditorActionBarContributor
implementation of this method does
nothing. Subclasses may reimplement. This generally entails disconnecting
from the old editor, connecting to the new editor, and updating the actions
to reflect the new editor.
setActiveEditor
in interface IEditorActionBarContributor
setActiveEditor
in class EditorActionBarContributor
part
- the new target editorpublic abstract void setActivePage(IEditorPart activeEditor)
This method is called whenever the page changes. Subclasses must implement this method to redirect actions to the given editor (if not already directed to it).
activeEditor
- the new active editor, or null
if there is no active page, or if the
active page does not have a corresponding editor
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.