Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Actions and context menus on diagram elements?
Actions and context menus on diagram elements? [message #76108] Wed, 08 November 2006 19:35 Go to next message
Eclipse UserFriend
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 04:21 Go to previous messageGo to next message
Eclipse UserFriend
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 09:56 Go to previous message
Eclipse UserFriend
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: Tue Jul 15 11:16:05 EDT 2025

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

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

Back to the top