Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Dynamic Submenus in Dynamic Menus?
Dynamic Submenus in Dynamic Menus? [message #335797] Thu, 30 April 2009 07:13 Go to next message
Nikolay Georgiev is currently offline Nikolay Georgiev
Messages: 13
Registered: July 2009
Junior Member
Hello,

is it possible to create dynamic submenus in dynamic menus? What I mean is
the following situation. I want to create several (dynamic) menus which
can contain many (dynamic) submenu items. For example in the following
structure the number of menus and submenu items can change dynamically and
I want to show this structure as menus:

- menu1
--- submenu item1
--- submenu item2
--- ...

- menu2
--- submenu item1
--- submenu item2
--- submenu item3
--- ...

- ...

What I've found until now is the CompoundContributionItem class which can
dynamically create IContributionItem[]s. And this is very suitable for
showing dynamically submenu items. But I don't know how to create
dynamically the main menus. Do you have some idea?

Thank You,
Nikolay
Re: Dynamic Submenus in Dynamic Menus? [message #335859 is a reply to message #335797] Wed, 06 May 2009 05:32 Go to previous message
Nikolay Georgiev is currently offline Nikolay Georgiev
Messages: 13
Registered: July 2009
Junior Member
I decided that I won't do it with extension points, but with the method:

menuAboutToShow(IMenuManager manager)

and of course it worked perfectly! :)
Previous Topic:Command / handler issue - Ctrl+S won't work
Next Topic:FormToolkit best practices
Goto Forum:
  


Current Time: Sat Apr 19 03:12:30 EDT 2014

Powered by FUDForum. Page generated in 0.02225 seconds