Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Question about execPrepareAction on desktop menus
Question about execPrepareAction on desktop menus [message #1235131] Thu, 23 January 2014 16:25
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
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?
Previous Topic:Preferences and states per User
Next Topic:Resizing/lower resolution issue
Goto Forum:

Current Time: Wed Aug 12 07:40:54 GMT 2020

Powered by FUDForum. Page generated in 0.06213 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top