Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [JFace/Actions] Radio button style actions problem
[JFace/Actions] Radio button style actions problem [message #312875] Thu, 22 February 2007 10:38 Go to next message
Eclipse UserFriend
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
Re: [JFace/Actions] Radio button style actions problem [message #312881 is a reply to message #312875] Thu, 22 February 2007 13:10 Go to previous message
Eclipse UserFriend
SWT will check/uncheck radio buttons if they are sibling controls right
next to each other. What style are the Actions that you are instantiating?

PW
Previous Topic:Relaunching Application
Next Topic:[Requesting Support]Eclipse + knopflerfish
Goto Forum:
  


Current Time: Sun Jul 06 19:47:55 EDT 2025

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

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

Back to the top