Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Access to ActionbarAdvisor to get list of workbench menus/menu items
Access to ActionbarAdvisor to get list of workbench menus/menu items [message #447784] Sat, 15 April 2006 22:16
Tony is currently offline TonyFriend
Messages: 52
Registered: July 2009
Member
Hi,

I am new to Eclipse, so would really appreciate any kind of help.

I have a requirement to write a plug-in that will get the list of menus/menu
items of the workbench window's menbar and display it in a TreeViewer in a
view. The TreeViewer should be kept updated whenever the menubar is updated.

From the view, I can get to the Shell, and its Menubar. But this only gives
me the list of menus that were added via code, not the ones added via the
plugin.xml. I'd like to get the entire list in the order they appear.

Is there a registry where I can get this list, and if so, how can I access
it from a view? I can get to the MenuManager via the ActionbarAdvisor. But
can I get the ActionbarAdvisor via the standard implementation without
requiring the writer of the Application class to write getter/setter methods
for this.

Any ideas/code/examples much appreciated.

Thanks !!
-Tony
Previous Topic:Menu - ActionBarAdvisor
Next Topic:key binding for viewAction
Goto Forum:
  


Current Time: Wed Dec 11 19:10:25 GMT 2024

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

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

Back to the top