Look at ActionManager.getInstance().getAction(...) as well as the DefaultActionGroup class which is implemented by all of the menus, which are themselves actions. The menu bar itself is specified by "MainMenu". See doc/openapi/ActionManager.xml WinsonChan wrote:
I know that we can add new action to menu bar in a plugin.xml.
But is there any menu to add/remove in at run time?
Thx
--
Erb
============================================================== "Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall ==============================================================
Yes. Boy, do we need docs!
Look at ActionManager.getInstance().getAction(...)
as well as the DefaultActionGroup class which is implemented by
all of the menus, which are themselves actions. The menu bar itself
is specified by "MainMenu". See doc/openapi/ActionManager.xml
WinsonChan wrote:
--
Erb
==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================