From: Mirco J. <m....@we...> - 2007-12-09 11:33:59
|
Hi all, I am new to this group hoping that my question belongs to it. I have an action implementing IPartListener to regsiter itself to newly opened editors. Works fine but each editor should control whether this action is enabled or not. The action is represented in the toolBar. The part listener tells me, when one of the allowed editors is being activated so that I may do a setEnabled(false|true) to set the state of the action. Unfortunately this has no effect, the button in the tool bar always remains active (clickable and active icon). Clicking it calls the run method no matter of the state. Adding a corresponding check to the run method shows me that the state of the action is either true or false. I cannot understand how to tell the toolBar to disable the button and would like to ask you for help since no documentation helped me out. thx, mirco |