[JFace/Actions] Radio button style actions problem [message #312875] |
Thu, 22 February 2007 15:38 |
Eclipse User |
|
|
|
Originally posted by: dc.schneid.googlemail.com
Hi,
I have the following little problem with a set of radio-button-style
actions:
I want to trigger action A when action B finishes automatically, so that the
button of A is pushed and that of B is no longer pushed. Calling A's run
method doesn't change the button state. Calling setChecked(true) on A won't
change B's button state; I end up with two pushed buttons although the
styles are radiobutton!
Do I really have to uncheck B manually, check A manually and call A's run
method? Is there a more elegant way to it?
Put differently: Can I get the platform to display a radiobutton style
behaviour also when the actions are triggered by the program?
BTW, the context is that of a diagram editor. A ist the "Select" tool, B is
a shape drawing tool and I want to program to go back to the select tool
once the user has drawn the shape.
Thanks,
David
|
|
|
|
Powered by
FUDForum. Page generated in 0.02463 seconds