Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:09 Go to next message
Mohit Advani is currently offline Mohit AdvaniFriend
Messages: 28
Registered: May 2019
Junior Member
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 15:32 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
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


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Integrate Xtext editor in Sirius Properties
Next Topic:Table representation
Goto Forum:
  


Current Time: Thu Mar 28 16:49:28 GMT 2024

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

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

Back to the top