Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.jdt.graph.views
Class GraphViewerContributor  view GraphViewerContributor download GraphViewerContributor.java

java.lang.Object
  extended byorg.eclipse.ui.part.EditorActionBarContributor
      extended byorg.eclipse.ui.part.MultiPageEditorActionBarContributor
          extended bycom.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.


Field Summary
private  org.eclipse.ui.IEditorPart activeEditorPart
           
private  org.eclipse.jface.action.Action sampleAction
           
 
Fields inherited from class org.eclipse.ui.part.EditorActionBarContributor
 
Constructor Summary
GraphViewerContributor()
          Creates a multi-page contributor.
 
Method Summary
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)
          Sets the active page of the the multi-page editor to be the given editor.
 
Methods inherited from class org.eclipse.ui.part.MultiPageEditorActionBarContributor
setActiveEditor
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToMenu, contributeToStatusLine, contributeToToolBar, dispose, getActionBars, getPage, init, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeEditorPart

private org.eclipse.ui.IEditorPart activeEditorPart

sampleAction

private org.eclipse.jface.action.Action sampleAction
Constructor Detail

GraphViewerContributor

public GraphViewerContributor()
Creates a multi-page contributor.

Method Detail

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).