Popup menu not refreshed when no new selection [message #517877] |
Tue, 02 March 2010 07:23  |
Eclipse User |
|
|
|
Hi,
I have a problem with a tableviewer and a popup menu. the menu consists of a couple of commands which has activeWhen set on the handlers. Each of these activeWhen checks for different states in the object shown in the tableviewer.
Example:
the handler setToPending sets pending in the model object but its not active when the state is pending in the model object
My problem is that the popup menu is not refreshed unless i make a new selection in the tableviewer. So if im standing on a row, right-click and run the setToPending command, this works fine. If right-clicking on the same row again no new selection is sent and the handler setToPending is still shown as active in the menu, but throws an exception when its run since the handler is not active.
Is there a way which i can refresh the popup menu ( i have tried to send the same selection again but this dosen't work), or make the popup menu recheck the state of all the handlers on activation?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03707 seconds