java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.part.MultiPageEditorActionBarContributor
com.port80.eclipse.jdt.graph.views.GraphViewerContributor
- All Implemented Interfaces:
- org.eclipse.ui.IEditorActionBarContributor
- public class GraphViewerContributor
- 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.
| 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
GraphViewerContributor
public GraphViewerContributor()
- 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).