Class DiagramEditorContextMenuProvider
java.lang.Object
org.eclipse.jface.action.ContributionManager
org.eclipse.jface.action.MenuManager
org.eclipse.gef.ContextMenuProvider
org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
de.uka.ipd.sdq.pcm.gmf.composite.part.DiagramEditorContextMenuProvider
- All Implemented Interfaces:
IContributionItem
,IContributionManager
,IMenuListener
,IMenuManager
public class DiagramEditorContextMenuProvider
extends org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
- Generated class or method.
-
Field Summary
Fields inherited from class org.eclipse.jface.action.MenuManager
MANAGER_KEY, visible
-
Constructor Summary
ConstructorDescriptionDiagramEditorContextMenuProvider
(IWorkbenchPart part, org.eclipse.gef.EditPartViewer viewer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildContextMenu
(IMenuManager menu) The hard-wired context menu "Delete From Model" needs to be removed here, so we can add a variant where we are able to disable it for certain diagram element types (here: roles attached to an assembly context).void
dispose()
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
addDefaultExclusions, allowItem, getActionRegistry, getExclusionSet, setExclusionSet
Methods inherited from class org.eclipse.gef.ContextMenuProvider
getViewer, menuAboutToShow, setViewer
Methods inherited from class org.eclipse.jface.action.MenuManager
addMenuListener, createContextMenu, createMenuBar, createMenuBar, doItemFill, fill, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getImageDescriptor, getMenu, getMenuItem, getMenuItemCount, getMenuItems, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isDynamic, isEnabled, isGroupMarker, isSeparator, isSubstituteFor, isVisible, markDirty, menuExist, removeMenuListener, saveWidgetState, setActionDefinitionId, setImageDescriptor, setMenuText, setOverrides, setParent, setRemoveAllWhenShown, setVisible, toString, update, update, update, update, updateAll
Methods inherited from class org.eclipse.jface.action.ContributionManager
add, add, appendToGroup, appendToGroup, dumpStatistics, find, getItems, getSize, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItem, setDirty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.action.IContributionItem
isDirty
Methods inherited from interface org.eclipse.jface.action.IContributionManager
add, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll
-
Constructor Details
-
DiagramEditorContextMenuProvider
- Generated class or method.
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIContributionItem
- Overrides:
dispose
in classMenuManager
- Generated class or method.
-
buildContextMenu
The hard-wired context menu "Delete From Model" needs to be removed here, so we can add a variant where we are able to disable it for certain diagram element types (here: roles attached to an assembly context). The variant is added via extension point org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider- Overrides:
buildContextMenu
in classorg.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
- Parameters:
menu
- the menu manager to configure- Generated class or method.
- not
-