Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding menu to GMF diagram
Adding menu to GMF diagram [message #157768] Tue, 30 October 2007 15:16 Go to next message
Eclipse UserFriend
Hi All,

What extension points do you use to add menus to the generated diagram
editor main menu bar and diagram popup menu?

What is the correct Id to use within the extension point?

Thanks in advance!
Re: Adding menu to GMF diagram [message #157791 is a reply to message #157768] Tue, 30 October 2007 16:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Gary Leask wrote:
> Hi All,
> What extension points do you use to add menus to the generated diagram
> editor main menu bar and diagram popup menu?

I don't have any experience with the main menu bar, but

http://wiki.eclipse.org/GMF_Tutorial_Part_3#Custom_Actions

gives an introduction to diagram popup menus. But in my opinion it is
complicating things. What you should do, is open the manifest of the
diagram plugin, then the Extensions tab. under ..popupMenus you can
define menu items and refer to an action. Much more easy and user
friendly than starting to hack at the xml.
>
> What is the correct Id to use within the extension point?
>

You are free to select any ID - As long as you stick with it!

HTH,

Tomas Zijdemans
Re: Adding menu to GMF diagram [message #157824 is a reply to message #157791] Tue, 30 October 2007 19:42 Go to previous message
Eclipse UserFriend
Originally posted by: ijerez2001.msn.com

I create a main menu bar with a action set in extensions, you can use the
example that provide GMF that is called "Hello World!" and the same for
popup menu, you can use a example in the extensions.
These examples are in the add menu for extensions, in the tab Wizards.

Regards

"Tomas Zijdemans" <trommas@yahoo.com> escribió en el mensaje de
noticias:fg82gj$sce$1@build.eclipse.org...
> Gary Leask wrote:
>> Hi All,
>> What extension points do you use to add menus to the generated diagram
>> editor main menu bar and diagram popup menu?
>
> I don't have any experience with the main menu bar, but
>
> http://wiki.eclipse.org/GMF_Tutorial_Part_3#Custom_Actions
>
> gives an introduction to diagram popup menus. But in my opinion it is
> complicating things. What you should do, is open the manifest of the
> diagram plugin, then the Extensions tab. under ..popupMenus you can define
> menu items and refer to an action. Much more easy and user friendly than
> starting to hack at the xml.
>>
>> What is the correct Id to use within the extension point?
>>
>
> You are free to select any ID - As long as you stick with it!
>
> HTH,
>
> Tomas Zijdemans
>
>
Previous Topic:Promote Children Delete Container. ComponentEditPolicy. Command.
Next Topic:Iterate through Diagram roots
Goto Forum:
  


Current Time: Sun Jun 22 01:44:25 EDT 2025

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

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

Back to the top