|Question about execPrepareAction on desktop menus [message #1235131]
||Thu, 23 January 2014 16:25
| Urs Beeli
Registered: October 2012
Location: Bern, Switzerland
My question concerns the SWT client.|
On context menus in tables I've succesfully used the menu class' execPrepareAction() method to determine whether the menu item needs to be visible or not and if it is visible, whether it needs to be active/inactive or checked/unchecked.
Today, I tried to do the same on the main menus in the Desktop class. I've created two classes that extend AbstractMenu below the ToolsMenu and implemented the execPrepareAction method for both of them. I also implemented the method for the ToolsMenu class.
I expected this method to be called every time the user opens the ToolsMenu. However, they only seem to be called once when the desktop is built, but not afterwards.
Is this a bug or am I doing something wrong?
Powered by FUDForum
. Page generated in 0.04004 seconds