Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [Data Binding] Binding depends on another binding
[Data Binding] Binding depends on another binding [message #987609] Tue, 27 November 2012 05:27 Go to next message
Ted Mosby is currently offline Ted Mosby
Messages: 9
Registered: April 2012
Junior Member
Hi

I have a question. Is it possible that a binding depends on another binding? I have a combobox which contains profile names. If i choose a profile name some other widgets will be filled with the values of the chosen profile. I wanted to know if it is possible to fill the other widgets when a profile is selected in the combobox with data binding? I bound the combobox to a model property, when the user select another profile, the value will be changed and the other widgets should be updated. Can i do this only with data binding? Or must i call the setter for all widgets manually?

Thx!
Re: [Data Binding] Binding depends on another binding [message #991328 is a reply to message #987609] Tue, 18 December 2012 09:33 Go to previous message
Simon Scholz is currently offline Simon Scholz
Messages: 73
Registered: April 2012
Location: Germany
Member
Hi Ted(I guess this is not your real name->"How I met your mother" fan?),

you should have a look at http://bingjava.appspot.com/snippet.jsp?id=514

I myself use a org.eclipse.core.databinding.observable.set.ComputedSet, because I do not know why there should be the same value two or more times in a ComboViewer.

If there is something unclear concerning the given snippet do not hesitate to ask.

Best regards,

Simon
Previous Topic:selectionChangedListener and viewer.setSelection
Next Topic:Selection width of selection in treeViewer
Goto Forum:
  


Current Time: Tue Jul 29 15:09:14 EDT 2014

Powered by FUDForum. Page generated in 0.02559 seconds