Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to disable copy, cut, paste, delete menu items for elements with specific property
How to disable copy, cut, paste, delete menu items for elements with specific property [message #641818] Sun, 28 November 2010 13:00 Go to next message
Volker Schilling is currently offline Volker SchillingFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I like to disable the edit menu items for elements with an attribute:

derived==true

for elements with the attribute

derived==False

I like to have these menu itmes.

How can I do this?

Thanks,
Volker
Re: How to disable copy, cut, paste, delete menu items for elements with specific property [message #641840 is a reply to message #641818] Sun, 28 November 2010 16:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Volker,

You'll need to specialize AdapterFactoryEditinDomain for createCommand
for the command types you want to specialize.


Volker Schilling wrote:
> Hi,
>
> I like to disable the edit menu items for elements with an attribute:
>
> derived==true
>
> for elements with the attribute
>
> derived==False
>
> I like to have these menu itmes.
>
> How can I do this?
>
> Thanks,
> Volker
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:create actions for each EOperation semi-automatically in editor plugin
Next Topic:Generated editor projects always break after metamodel modifications?
Goto Forum:
  


Current Time: Fri Apr 19 03:47:52 GMT 2024

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

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

Back to the top