Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF PopUp Action
GMF PopUp Action [message #512733] Sat, 06 February 2010 20:46 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

is there somewhere a extension point for popup menu actions for specfic
nodes in my diagram? For example, i want to enable a 'show details' menu
action when NodeXYZ ist selected in the diagram.

Thanks a lot for any advice
Timothy
Re: GMF PopUp Action [message #513529 is a reply to message #512733] Wed, 10 February 2010 13:41 Go to previous messageGo to next message
Romain Bioteau is currently offline Romain BioteauFriend
Messages: 65
Registered: August 2009
Location: Grenoble
Member
Le 06/02/2010 21:46, Timothy Marc a écrit :
> Hi all,
>
> is there somewhere a extension point for popup menu actions for specfic
> nodes in my diagram? For example, i want to enable a 'show details' menu
> action when NodeXYZ ist selected in the diagram.
>
> Thanks a lot for any advice
> Timothy

Hi Timothy,
you could use the org.eclipse.ui.popupMenus extension point.
Add a contribution with class =
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt
Add an action (define the action handler by refrecing the class
attribute) and add to this action a selection node.
There you could put the editpart class for which the action is enabled.

Regards,
Romain


R&D Engineer at BonitaSoft
Re: GMF PopUp Action [message #513973 is a reply to message #513529] Thu, 11 February 2010 15:44 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi Romain,

thanks a lot for that suggestion. I'd thought about hooking into the
default Open Behavior command. This should work too, but i will try both.

Timothy

Romain Bioteau schrieb:
> Le 06/02/2010 21:46, Timothy Marc a écrit :
>> Hi all,
>>
>> is there somewhere a extension point for popup menu actions for specfic
>> nodes in my diagram? For example, i want to enable a 'show details' menu
>> action when NodeXYZ ist selected in the diagram.
>>
>> Thanks a lot for any advice
>> Timothy
>
> Hi Timothy,
> you could use the org.eclipse.ui.popupMenus extension point.
> Add a contribution with class =
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt
> Add an action (define the action handler by refrecing the class
> attribute) and add to this action a selection node.
> There you could put the editpart class for which the action is enabled.
>
> Regards,
> Romain
Previous Topic:removing the hover popup / bar
Next Topic:Problem with multiple Link mappings
Goto Forum:
  


Current Time: Wed Apr 21 06:04:22 GMT 2021

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

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

Back to the top