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.
  • Constructor Details

    • DiagramEditorContextMenuProvider

      public DiagramEditorContextMenuProvider(IWorkbenchPart part, org.eclipse.gef.EditPartViewer viewer)
      Generated class or method.
  • Method Details

    • dispose

      public void dispose()
      Specified by:
      dispose in interface IContributionItem
      Overrides:
      dispose in class MenuManager
      Generated class or method.
    • buildContextMenu

      public void 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). The variant is added via extension point org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
      Overrides:
      buildContextMenu in class org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
      Parameters:
      menu - the menu manager to configure
      Generated class or method.
      not