Access to ActionbarAdvisor to get list of workbench menus/menu items [message #447784] |
Sat, 15 April 2006 22:16 |
Tony 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
|
|
|
Powered by
FUDForum. Page generated in 0.03199 seconds