About add and remove MenuItem!

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

1 comment
Comment actions Permalink

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:

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
==============================================================

0

Please sign in to leave a comment.