|
Re: Dynamic menu [message #467128 is a reply to message #467118] |
Sat, 28 April 2007 08:40 |
Eclipse User |
|
|
|
Originally posted by: zxkane.msn.com
define your actions in plugin.xml and set the actionSet invisible
you can show the actionSet by calling showActionSet in runtime
> In my RCP app , i want to add/remove menus .
>
> Now i've found that in the workbenchwindowadvisor
> class ,we can get the
> menumanager this way:
> this.getWindowConfigurer().getActionBarConfigurer().ge
> tMenuManager();
>
> But ,my question is :how to get the
> workbenchwindowadvisor object?
>
> or ,maybe,there is better ways to get the
> Menumanager()?
>
> or,there is other ways to add menus when the app is
> running?
>
>
|
|
|
Re: Dynamic menu [message #467157 is a reply to message #467128] |
Mon, 30 April 2007 02:00 |
Dollyn Messages: 6 Registered: July 2009 |
Junior Member |
|
|
I know this, but I need another way.
The reason is :
the menu i want add may be dynamic ,for example ,the text displayed on the
menu is dynamic,it is not the same at different time.
"kane" <zxkane@msn.com>
??????:12919341.1177749689525.JavaMail.root@cp1.javalobby.org...
> define your actions in plugin.xml and set the actionSet invisible
>
> you can show the actionSet by calling showActionSet in runtime
>
> > In my RCP app , i want to add/remove menus .
> >
> > Now i've found that in the workbenchwindowadvisor
> > class ,we can get the
> > menumanager this way:
> > this.getWindowConfigurer().getActionBarConfigurer().ge
> > tMenuManager();
> >
> > But ,my question is :how to get the
> > workbenchwindowadvisor object?
> >
> > or ,maybe,there is better ways to get the
> > Menumanager()?
> >
> > or,there is other ways to add menus when the app is
> > running?
> >
> >
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03175 seconds