org.eclipse.palamedes.ui.editor
Class MainEditorContributor
java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.part.MultiPageEditorActionBarContributor
org.eclipse.palamedes.ui.editor.MainEditorContributor
- All Implemented Interfaces:
- org.eclipse.ui.IEditorActionBarContributor
public class MainEditorContributor
- extends org.eclipse.ui.part.MultiPageEditorActionBarContributor
Manages the installation/deinstallation of global actions for multi-page editors.
Responsible for the redirection of global actions to the active editor.
Multi-page contributor replaces the contributors for the individual editors in the multi-page editor.
Method Summary |
void |
contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
|
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
|
protected org.eclipse.jface.action.IAction |
getAction(org.eclipse.ui.texteditor.ITextEditor editor,
java.lang.String actionID)
Returns the action registed with the given text editor. |
void |
setActivePage(org.eclipse.ui.IEditorPart part)
|
Methods inherited from class org.eclipse.ui.part.MultiPageEditorActionBarContributor |
setActiveEditor |
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor |
contributeToCoolBar, contributeToStatusLine, dispose, getActionBars, getPage, init, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainEditorContributor
public MainEditorContributor()
- Creates a multi-page contributor.
getAction
protected org.eclipse.jface.action.IAction getAction(org.eclipse.ui.texteditor.ITextEditor editor,
java.lang.String actionID)
- Returns the action registed with the given text editor.
- Returns:
- IAction or null if editor is null.
setActivePage
public void setActivePage(org.eclipse.ui.IEditorPart part)
- Specified by:
setActivePage
in class org.eclipse.ui.part.MultiPageEditorActionBarContributor
contributeToMenu
public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
- Overrides:
contributeToMenu
in class org.eclipse.ui.part.EditorActionBarContributor
contributeToToolBar
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
- Overrides:
contributeToToolBar
in class org.eclipse.ui.part.EditorActionBarContributor