Skip to main content



      Home
Home » Eclipse Projects » Sirius » Remove actions from context menu {Diagram Editor}
Remove actions from context menu {Diagram Editor} [message #1822106] Thu, 27 February 2020 07:09 Go to next message
Eclipse UserFriend
Hi,

i want to remove some of action from context menu of diagram editor {right click on diagram}, i have hidden some of them by using activities extension but some of them i m unable to remove , even i have checked the Plugin spy to find out item identifies. i have attached snap of all the other which i want to hide {PFA}
i want o remove
-Edit
- Show/Hide
-Select
- Layout
Re: Remove actions from context menu {Diagram Editor} [message #1822121 is a reply to message #1822106] Thu, 27 February 2020 10:32 Go to previous message
Eclipse UserFriend
Hello

Tweaking contextual menu is not necessarily easy.

The menu entries you want to remove seems to be gmf ones.

You need to provide extension data on org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders extension point.

Sirius already removes some gmf provided menus. See example in https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.diagram.ui/plugin.xml line 336

To find the id of the menu entry the Sirius documentation may help you https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#tools_reference paragraph "Group menu".

Best regards
Laurent
Previous Topic:Integrate Xtext editor in Sirius Properties
Next Topic:Table representation
Goto Forum:
  


Current Time: Mon Jun 16 09:48:45 EDT 2025

Powered by FUDForum. Page generated in 0.03998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top