Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » where to disable the Duplicate button on the right-click menu
where to disable the Duplicate button on the right-click menu [message #199665] Thu, 31 July 2008 13:48 Go to next message
Toyin is currently offline ToyinFriend
Messages: 35
Registered: July 2009
Member
Hi Everyone,
I would like to disable or customize the duplicate button on the
right-click menu. Does anybody know how to do this or know where to locate
the class that is responsible for this 'duplicate' action? Please help me!

Thanks
Toyin
Re: where to disable the Duplicate button on the right-click menu [message #199681 is a reply to message #199665] Thu, 31 July 2008 14:16 Go to previous message
Eclipse UserFriend
Originally posted by: michael.wohlfart.proceedinnovation.com

Hello!

the duplicate action is contributed to the ContextMenu through the
" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProvider "
extension point in the gmf plugin
"org.eclipse.gmf.runtime.diagram.ui.providers"

The according implementation of the ContributionItemProvider is done by
the class
" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContribu tionItemProvider ",
The ContextMenuProvider is
" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider "
both in the "org.eclipse.gmf.runtime.diagram.ui.providers".

I found this out by importing the gmf plugins as source projects into my
workspace. This is very helpful when you don't know some ids or
implementing classes, since you can debug into this code then.. (just a
tip ;-)

Greetings,
Michael

Toyin Johnson Fakorede schrieb:
> Hi Everyone,
> I would like to disable or customize the duplicate button on the
> right-click menu. Does anybody know how to do this or know where to
> locate the class that is responsible for this 'duplicate' action? Please
> help me!
>
> Thanks
> Toyin
>
Previous Topic:Property Tab: Enable change value
Next Topic:Remove Load Resource object contribution
Goto Forum:
  


Current Time: Thu Apr 25 17:31:33 GMT 2024

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

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

Back to the top