org.eclipse.graphiti.ui.editor
Class DiagramEditorActionBarContributor

java.lang.Object
  extended by ActionBarContributor
      extended by org.eclipse.graphiti.ui.editor.DiagramEditorActionBarContributor

public class DiagramEditorActionBarContributor
extends ActionBarContributor

Provides some standard-actions and adds them to the toolbar or the toplevel-menu.

Some of the standard-actions are: undo/redo, delete, copy/paste, alignment, zooming.


Field Summary
static String MENU_ID_VIEW
          The menu ID of the Graphiti view menu that is added by this action bar contributor to the main menu.
 
Constructor Summary
DiagramEditorActionBarContributor()
           
 
Method Summary
protected  void addSaveAsImageEntryToMenu(IMenuManager menubar)
          Adds the save as image menu entry to the main menu.
protected  void buildActions()
          Creates and initialises all Actions.
 void contributeToMenu(IMenuManager menubar)
          Adds Actions to the given IMenuManager, which is displayed as the main-menu of Eclipse.
 void contributeToToolBar(IToolBarManager tbm)
          Adds Actions to the given IToolBarManager, which is displayed above the editor.
protected  void declareGlobalActionKeys()
          Global action keys are already declared with #addRetargetAction(RetargetAction).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MENU_ID_VIEW

public static final String MENU_ID_VIEW
The menu ID of the Graphiti view menu that is added by this action bar contributor to the main menu.

Since:
0.12
See Also:
Constant Field Values
Constructor Detail

DiagramEditorActionBarContributor

public DiagramEditorActionBarContributor()
Method Detail

buildActions

protected void buildActions()
Creates and initialises all Actions. See the corresponding method in the super class.

See Also:
org.eclipse.gef.ui.actions.ActionBarContributor

declareGlobalActionKeys

protected void declareGlobalActionKeys()
Global action keys are already declared with #addRetargetAction(RetargetAction). See the corresponding method in the super class.

See Also:
org.eclipse.gef.ui.actions.ActionBarContributor

contributeToToolBar

public void contributeToToolBar(IToolBarManager tbm)
Adds Actions to the given IToolBarManager, which is displayed above the editor. See the corresponding method in the super class.

Parameters:
tbm - the IToolBarManager
See Also:
org.eclipse.ui.part.EditorActionBarContributor

contributeToMenu

public void contributeToMenu(IMenuManager menubar)
Adds Actions to the given IMenuManager, which is displayed as the main-menu of Eclipse. See the corresponding method in the super class.

Parameters:
menubar - the menubar
See Also:
org.eclipse.ui.part.EditorActionBarContributor

addSaveAsImageEntryToMenu

protected void addSaveAsImageEntryToMenu(IMenuManager menubar)
Adds the save as image menu entry to the main menu. The default implementation adds it to the file menu right after the export submenu. Clients can override to change the location of the entry, e.g. because in their RCP application there is no export entry.

Parameters:
menubar - The main menu bar to add to
Since:
0.11
See Also:
ISaveImageFeature


Copyright (c) SAP AG 2005, 2012.