de.cau.cs.kieler.klots.editor
Class KlotsEditorContributor

java.lang.Object
  extended by org.eclipse.ui.part.EditorActionBarContributor
      extended by de.cau.cs.kieler.klots.editor.KlotsEditorContributor
All Implemented Interfaces:
IEditorActionBarContributor

public class KlotsEditorContributor
extends EditorActionBarContributor

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.

Rating red

Constructor Summary
KlotsEditorContributor()
          Creates a multi-page contributor.
 
Method Summary
 void contributeToToolBar(IToolBarManager manager)
          
protected  IAction getAction(ITextEditor editor, String actionID)
          Returns the action registed with the given text editor.
 void setActivePage(IEditorPart part)
          
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToMenu, contributeToStatusLine, dispose, getActionBars, getPage, init, init, setActiveEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KlotsEditorContributor

public KlotsEditorContributor()
Creates a multi-page contributor.

Method Detail

getAction

protected IAction getAction(ITextEditor editor,
                            String actionID)
Returns the action registed with the given text editor.

Parameters:
editor -
actionID -
Returns:
IAction or null if editor is null.

setActivePage

public void setActivePage(IEditorPart part)


contributeToToolBar

public void contributeToToolBar(IToolBarManager manager)

Overrides:
contributeToToolBar in class EditorActionBarContributor