Remove a contribution action in the contextual menuhttps://www.eclipse.org/forums/index.php/mv/msg/365371/890496/#msg_890496
I want to know if there exists any way to remove or replace a contribution action from the contextual menu in the GMF Diagrams.

For instance, I want to replace the "File/Save As Image File..." action with another one customized by me.

How can I do it?

Thanks a lot!
Marc]]>Marc Gil2012-06-22T12:29:16-00:00Re: Remove a contribution action in the contextual menuhttps://www.eclipse.org/forums/index.php/mv/msg/365371/890500/#msg_890500
]]>Marc Gil2012-06-22T12:38:21-00:00Re: Remove a contribution action in the contextual menuhttps://www.eclipse.org/forums/index.php/mv/msg/365371/891581/#msg_891581
can you share how you did it?

Thanks,

Ralph]]>Ralph Gerbig2012-06-25T09:46:15-00:00Re: Remove a contribution action in the contextual menuhttps://www.eclipse.org/forums/index.php/mv/msg/365371/891772/#msg_891772
First you need to know the ID of the GMF action you want to remove or to replace. In my case I want to replace the "CopyToImageAction" that allows to export the diagram (or selected EditParts) to a Image. You can find them looking throught the GMF plugins. In this page I found some of GMF actions (http://blog.lgylym.info/2010/05/add-new-entry-to-existing-context-menu.html)

Then you need to contribute an extension point into the desired plugin, something like the following code: