public class DiagramEditorContextMenuProvider
extends org.eclipse.gef.ContextMenuProvider
Some of the standard-menu-items are: undo/redo, delete, copy/paste, alignment, zooming.
MANAGER_KEY| Constructor and Description |
|---|
DiagramEditorContextMenuProvider(org.eclipse.gef.EditPartViewer viewer,
org.eclipse.gef.ui.actions.ActionRegistry registry,
IConfigurationProvider configurationProvider)
Creates a new DiagramEditorContextMenuProvider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildContextMenu(IMenuManager manager)
Adds the Actions to the given IMenuManager, which is displayed as a
context-menu.
|
addMenuListener, createContextMenu, createMenuBar, createMenuBar, dispose, fill, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getImageDescriptor, getMenu, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isDynamic, isEnabled, isGroupMarker, isSeparator, isSubstituteFor, isVisible, markDirty, removeMenuListener, saveWidgetState, setActionDefinitionId, setImageDescriptor, setMenuText, setOverrides, setParent, setRemoveAllWhenShown, setVisible, toString, update, update, update, updateAlladd, add, appendToGroup, appendToGroup, find, getItems, getSize, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItemequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAllisDirtypublic DiagramEditorContextMenuProvider(org.eclipse.gef.EditPartViewer viewer,
org.eclipse.gef.ui.actions.ActionRegistry registry,
IConfigurationProvider configurationProvider)
viewer - The EditPartViewer, for which the context-menu shall be
displayed.registry - The action-registry, which contains the actions corresponding
to the menu-items.configurationProvider - the configuration providerpublic void buildContextMenu(IMenuManager manager)
buildContextMenu in class org.eclipse.gef.ContextMenuProvidermanager - the managerContextMenuProvider.buildContextMenu(IMenuManager)