|Menu bar not checking handler enablement [message #336070]
||Tue, 19 May 2009 06:25
Registered: July 2009
I have created a command, which I have added to the main menu bar and as a
context menu to a tree viewer.
The enablement of the command depends on the tree node selected, and this
is checked programmatically using the isEnabled() method of the commands
Now, it works fine for the context menu - i can see that isEnabled() is
called before the context menu is displayed, and the enablement state is
However, when the menu is shown from the main menu bar - isEnabled() is
not called, and the command does not have the correct state. Note: if I
hide and open the rcp app window, isEnabled() is called and the state is
correct from the main menu.
Could anyone offer help on this? I guess I need the main menu to check the
enablement of handlers before it is displayed?
Powered by FUDForum
. Page generated in 0.05238 seconds