Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Mon Apr 28 02:58:29 EDT 2025

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

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

Back to the top