Skip to main content



      Home
Home » Eclipse Projects » JFace » Databinding of CheckboxTableViewer
Databinding of CheckboxTableViewer [message #481196] Thu, 20 August 2009 02:10 Go to next message
Eclipse UserFriend
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] Fri, 21 August 2009 21:23 Go to previous messageGo to next message
Eclipse UserFriend
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] Sat, 22 August 2009 21:47 Go to previous messageGo to next message
Eclipse UserFriend
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 09:37 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 07:20:42 EDT 2025

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

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

Back to the top