Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » jface databinding: bind radio selection to boolean
jface databinding: bind radio selection to boolean [message #328640] Thu, 29 May 2008 11:46 Go to next message
Eclipse UserFriend
Originally posted by: lukas.myslivec.com

hello,

i am trying to bind the selection of radio button to a single boolean
value. there is no bean, just a single boolean.

like:

Button button1 = new Button(group1, SWT.RADIO);
button1.setText("Name");

DataBindingContext dbc = new DataBindingContext();

dbc.indValue((SWTObservables.observeSelection(button1),
OBSERVEMYBOOLEAN(selected) ,null,null);


---

is that possible somehow?

regards
lukas
Re: jface databinding: bind radio selection to boolean [message #328654 is a reply to message #328640] Fri, 30 May 2008 13:39 Go to previous message
Eclipse UserFriend
Originally posted by: malloovidio.bluewin.ch

Hi Lukas,

is your code below not working? I think it's pretty fine the way
your are doing it.

Regards,
Ovidio

lukas wrote:
> hello,
>
> i am trying to bind the selection of radio button to a single boolean
> value. there is no bean, just a single boolean.
>
> like:
>
> Button button1 = new Button(group1, SWT.RADIO);
> button1.setText("Name");
>
> DataBindingContext dbc = new DataBindingContext();
> dbc.indValue((SWTObservables.observeSelection(button1),
> OBSERVEMYBOOLEAN(selected) ,null,null);
>
>
> ---
>
> is that possible somehow?
>
> regards
> lukas
>
Previous Topic:Extension PopupMenu : Add icon to category menu
Next Topic:[Accessibility] Decorations in views not read by Windows Eyes
Goto Forum:
  


Current Time: Fri Jul 12 09:51:40 GMT 2024

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

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

Back to the top