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

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
- Show/Hide
- 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: 173
Registered: October 2014
Senior Member

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 extension point.

Sirius already removes some gmf provided menus. See example in line 336

To find the id of the menu entry the Sirius documentation may help you paragraph "Group menu".

Best regards

Laurent Fasani - Obeo
Need training or professional services for Sirius?
Previous Topic:Integrate Xtext editor in Sirius Properties
Next Topic:Create diagram programmatically
Goto Forum:

Current Time: Tue Oct 20 12:41:02 GMT 2020

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

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

Back to the top