Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Databinding of CheckboxTableViewer
Databinding of CheckboxTableViewer [message #481196] Thu, 20 August 2009 06:10 Go to next message
Alex Molochnikov is currently offline Alex MolochnikovFriend
Messages: 25
Registered: July 2009
Junior Member
I am struggling with binding CheckboxTableViewer to a data model. The model
maintains a Set of simple Java objects each with the "name" (String) and
"selected" (boolean) property. All I want is display the list of names, and
set the selected property in the model on/off when the user clicks on the
checkbox.

The snippet (Snippet018CheckboxTableViewerCheckedSelection) is of little
help, as it binds two UI viewers, instead of UI to the data model, and does
not track the boolean selection flag.

Does anyone have an example of how such code can be wired up?

Thanks,

Alex Molochnikov
Kelman Technologies Inc.
Re: Databinding of CheckboxTableViewer [message #481632 is a reply to message #481196] Sat, 22 August 2009 01:23 Go to previous messageGo to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Hi Alex, the recent thread with this topic may be of help to you: "[Databinding] Binding checkbox to boolean property"

Cheers
Ben
Re: Databinding of CheckboxTableViewer [message #481671 is a reply to message #481632] Sun, 23 August 2009 01:47 Go to previous messageGo to next message
Alex Molochnikov is currently offline Alex MolochnikovFriend
Messages: 25
Registered: July 2009
Junior Member
Ben,

Thank you for the response. The referenced thread amounts to saying that
the databinding does not truly support CheckboxTableViewer. Wiring up the
ICheckStateListener is what I ended up doing, but this solution is outside
of databinding framework.

Alex
Re: Databinding of CheckboxTableViewer [message #1014824 is a reply to message #481196] Tue, 26 February 2013 14:37 Go to previous message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
for the record here is the snippet to answer this questions.
http://bingjava.appspot.com/snippet.jsp?id=511
Previous Topic:[Databinding] Shared objects in a model displayed in a TreeViewer
Next Topic:[databinding] ObservablesManager does not dispose observables from disposed context
Goto Forum:
  


Current Time: Thu Apr 18 14:50:55 GMT 2024

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

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

Back to the top