|Re: Add item in context menu [message #12709 is a reply to message #12668]
||Fri, 05 June 2009 05:04
Originally posted by: atoulme.intalio.com|
> a question: it's possible to add an item in the context menu when there
> is a right click over a pool ?
> what is the best way (if it's possible) ?
> best regards
Sure, it's part of the GMF standard extensions.
You will need to plug your own
extension point and provide a new popupContribution, like this one:
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
objectClass=" org.eclipse.stp.bpmn.diagram.edit.parts.SequenceEdgeEditPart "
You will need to implement your own action provider, extending
AbstractContributionItemProvider and bind to the extension point as well.
I am sure the GMF developers have that documented somewhere in a more
Powered by FUDForum
. Page generated in 0.11282 seconds