Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to remove/add a menu item from Context Menu of a Representation.
How to remove/add a menu item from Context Menu of a Representation. [message #1495266] Tue, 02 December 2014 04:39 Go to next message
Huy Le is currently offline Huy LeFriend
Messages: 18
Registered: November 2014
Junior Member
Hello,

I would like to remove/hide Copy menu item from the context menu when right-clicking on a Representation as described in the image below

index.php/fa/20089/0/

As I know, the context menu is built via org.eclipse.sirius.ui.tools.internal.views.common.ContextMenuFiller

Does Sirius give us api to do the job?


Thanks,

Huy.
Re: How to remove/add a menu item from Context Menu of a Representation. [message #1495514 is a reply to message #1495266] Tue, 02 December 2014 09:15 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 482
Registered: July 2009
Location: Nantes, France
Senior Member
Le 02/12/2014 05:39, Huy Le a écrit :
> Hello,

Hi Huy,
>
> I would like to remove/hide Copy menu item from the context menu when right-clicking on a Representation as described in the image below
>
>
>
> As I know, the context menu is built via org.eclipse.sirius.ui.tools.internal.views.common.ContextMenuFiller
>
> Does Sirius give us api to do the job?

Sirius does not currently provide api to remove those actions. But it
should be possible to add new menus with the org.eclipse.ui.menu or
org.eclipse.ui.popupmenus extensions point.

>
>
> Thanks,
>
> Huy.
>

Regards

--
Maxime - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
http://www.siriuscon.org/
Previous Topic:Add properties to the relational based edge
Next Topic:Queries for moveElement Java action
Goto Forum:
  


Current Time: Wed Apr 08 09:51:36 GMT 2020

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

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

Back to the top