Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Data Binding
Data Binding [message #801384] Sat, 18 February 2012 04:36 Go to next message
Watabe Kichi is currently offline Watabe Kichi
Messages: 12
Registered: July 2011
Junior Member
Hello,
I am studying about JFace Data Binding.

Is there any difference between the two?

dbc.bindValue(WidgetProperties.text().observe(label),
                BeanProperties.value("subject").observeDetail(mail));


dbc.bindValue(SWTObservables.observeText(label),
                BeansObservables.observeValue(mail, "subject"));


Thank you in advance.
Re: Data Binding [message #801715 is a reply to message #801384] Sat, 18 February 2012 16:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5292
Registered: July 2009
Senior Member
Am 18.02.12 10:36, schrieb Watabe Kichi:
> Hello,
> I am studying about JFace Data Binding.
>
> Is there any difference between the two?
>
>
> dbc.bindValue(WidgetProperties.text().observe(label),
> BeanProperties.value("subject").observeDetail(mail));
>

New and prefered API

>
>
> dbc.bindValue(SWTObservables.observeText(label),
> BeansObservables.observeValue(mail, "subject"));
>

Old API which is still functional but you should go with the new one.

Tom
Re: Data Binding [message #801961 is a reply to message #801715] Sun, 19 February 2012 01:49 Go to previous message
Watabe Kichi is currently offline Watabe Kichi
Messages: 12
Registered: July 2011
Junior Member
Thank you for your clarification. I understand it now.

--
Btw, I've read your e4 tutorial.
Thank you very much for the great job!
Previous Topic:[databinding] virtual table, sorting & data binding problems
Next Topic:Virtual TreeViewer with lazy provider slowdown after model resort
Goto Forum:
  


Current Time: Wed Aug 27 17:10:31 EDT 2014

Powered by FUDForum. Page generated in 0.02476 seconds