SAM

org.topcased.modeler.sam.editor
Class SAMContextMenuProvider

java.lang.Object
  extended by ModelerContextMenuProvider
      extended by org.topcased.modeler.sam.editor.SAMContextMenuProvider

public class SAMContextMenuProvider
extends ModelerContextMenuProvider

Provide a Context Menu for the SAM Editor with customized actions


Constructor Summary
SAMContextMenuProvider(org.eclipse.gef.EditPartViewer viewer, org.eclipse.gef.ui.actions.ActionRegistry registry)
          Constructs a context menu for the specified EditPartViewer and the Actions registered in the ActionRegistry
 
Method Summary
 void buildContextMenu(org.eclipse.jface.action.IMenuManager manager)
          Called when the menu is about to show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMContextMenuProvider

public SAMContextMenuProvider(org.eclipse.gef.EditPartViewer viewer,
                              org.eclipse.gef.ui.actions.ActionRegistry registry)
Constructs a context menu for the specified EditPartViewer and the Actions registered in the ActionRegistry

Parameters:
viewer - the EditPartViewer
registry - the ActionRegistry
Method Detail

buildContextMenu

public void buildContextMenu(org.eclipse.jface.action.IMenuManager manager)
Called when the menu is about to show. Construct the context menu by adding actions common to all editparts.

See Also:
ContextMenuProvider.buildContextMenu(org.eclipse.jface.action.IMenuManager)

SAM

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.