org.eclipse.gmt.umlx.editor.actions
Class MultiSheetEditorContributor

java.lang.Object
  extended by org.eclipse.ui.part.EditorActionBarContributor
      extended by org.eclipse.ui.part.MultiPageEditorActionBarContributor
          extended by org.eclipse.gmt.umlx.editor.actions.MultiPageActionBarContributor
              extended by org.eclipse.gmt.umlx.editor.actions.MultiSheetEditorContributor
All Implemented Interfaces:
org.eclipse.ui.IEditorActionBarContributor

public class MultiSheetEditorContributor
extends MultiPageActionBarContributor

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.


Constructor Summary
MultiSheetEditorContributor()
          Creates a multi-page contributor.
 
Method Summary
 void contributeToMenu(org.eclipse.jface.action.IMenuManager menubar)
           
 void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
           
 void dispose()
          Disposes the contributor.
 void setActiveEditor(org.eclipse.ui.IEditorPart part)
           
 void setActivePage(org.eclipse.ui.IEditorPart part)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.actions.MultiPageActionBarContributor
init
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToStatusLine, getActionBars, getPage, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSheetEditorContributor

public MultiSheetEditorContributor()
Creates a multi-page contributor.

Method Detail

contributeToMenu

public void contributeToMenu(org.eclipse.jface.action.IMenuManager menubar)
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

dispose

public void dispose()
Description copied from class: MultiPageActionBarContributor
Disposes the contributor. Removes all RetargetActions that were IPartListeners on the IWorkbenchPage and disposes them. Also disposes the action registry.

Subclasses may extend this method to perform additional cleanup.

Specified by:
dispose in interface org.eclipse.ui.IEditorActionBarContributor
Overrides:
dispose in class MultiPageActionBarContributor
See Also:
EditorActionBarContributor.dispose()

setActiveEditor

public void setActiveEditor(org.eclipse.ui.IEditorPart part)
Specified by:
setActiveEditor in interface org.eclipse.ui.IEditorActionBarContributor
Overrides:
setActiveEditor in class org.eclipse.ui.part.MultiPageEditorActionBarContributor

setActivePage

public void setActivePage(org.eclipse.ui.IEditorPart part)
Overrides:
setActivePage in class MultiPageActionBarContributor
See Also:
IEditorActionBarContributor.setActiveEditor(IEditorPart)