Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Actions and context menus on diagram elements?
Actions and context menus on diagram elements? [message #76108] Thu, 09 November 2006 00:35 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I want to be able to trigger some actions via double-clicks onto diagram
elements. Furthermore I would like to attach context-menus to diagram
elements. And maybe also define a toolbar.

I would assume that one can define such things in the .gmftools-file? Is
there some example or description for this? All programs and examples I
have seen so far just defined palette entries and no more...

Michael
Re: Actions and context menus on diagram elements? [message #76129 is a reply to message #76108] Thu, 09 November 2006 09:21 Go to previous messageGo to next message
Seweryn Niemiec is currently offline Seweryn NiemiecFriend
Messages: 80
Registered: July 2009
Member
On Thu, 2006-11-09 at 01:35 +0100, Michael Moser wrote:
> elements. Furthermore I would like to attach context-menus to diagram
> elements. And maybe also define a toolbar.

You can add context-menus via ordinary org.eclipse.ui.popupMenus
extension point.

Regards,
Seweryn Niemiec
Re: Actions and context menus on diagram elements? [message #76240 is a reply to message #76108] Thu, 09 November 2006 14:56 Go to previous message
David Cummings is currently offline David CummingsFriend
Messages: 8
Registered: July 2009
Junior Member
Part 3 of the GMF Tutorial discusses adding context-menus to diagram
elements. Have a look at Section 4: Custom Actions

http://wiki.eclipse.org/index.php/GMF_Tutorial_Part_3

Michael Moser wrote:
> I want to be able to trigger some actions via double-clicks onto diagram
> elements. Furthermore I would like to attach context-menus to diagram
> elements. And maybe also define a toolbar.
>
> I would assume that one can define such things in the .gmftools-file? Is
> there some example or description for this? All programs and examples I
> have seen so far just defined palette entries and no more...
>
> Michael
>
Previous Topic:How can I differ between Features / what can I do to make a Feature unique?
Next Topic:(probably stupid) problem with dynamic templates
Goto Forum:
  


Current Time: Thu Dec 18 01:01:37 GMT 2014

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

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