org.topcased.modeler.ecore.editor
Class EcoreContextMenuProvider
java.lang.Object
ModelerContextMenuProvider
org.topcased.modeler.ecore.editor.EcoreContextMenuProvider
public class EcoreContextMenuProvider
- extends ModelerContextMenuProvider
Provide a Context Menu for the Ecore Editor with customized actions
Creation : 19 may 2006
Constructor Summary |
EcoreContextMenuProvider(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 |
EcoreContextMenuProvider
public EcoreContextMenuProvider(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 EditPartViewerregistry
- the ActionRegistry
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)
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.