java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.part.MultiPageEditorActionBarContributor
com.port80.draw2d.imageviewer.views.EditorContributor
- All Implemented Interfaces:
- org.eclipse.ui.IEditorActionBarContributor
- public class EditorContributor
- extends org.eclipse.ui.part.MultiPageEditorActionBarContributor
Manages the installation/deinstallation of global actions for image viewer.
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
activeEditorPart
private org.eclipse.ui.IEditorPart activeEditorPart
sampleAction
private org.eclipse.jface.action.Action sampleAction
EditorContributor
public EditorContributor()
- 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.
setActivePage
public void setActivePage(org.eclipse.ui.IEditorPart part)
- Description copied from class:
org.eclipse.ui.part.MultiPageEditorActionBarContributor
- Sets the active page of the the multi-page editor to be the given editor.
Redirect actions to the given editor if actions are not already being sent to it.
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).
createActions
private void createActions()
contributeToMenu
public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
- Description copied from class:
org.eclipse.ui.part.EditorActionBarContributor
- Contributes to the given menu.
The EditorActionBarContributor implementation of this method
does nothing. Subclasses may reimplement to add to the menu portion of this
contribution.
contributeToToolBar
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
- Description copied from class:
org.eclipse.ui.part.EditorActionBarContributor
- Contributes to the given tool bar.
The EditorActionBarContributor implementation of this method
does nothing. Subclasses may reimplement to add to the tool bar portion of
this contribution.