Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Data Binding
Data Binding [message #801384] Sat, 18 February 2012 09: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 21:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5399
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 06: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: Mon Oct 20 13:20:32 GMT 2014

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

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