Skip to main content



      Home
Home » Eclipse Projects » JFace » Data Binding
Data Binding [message #801384] Sat, 18 February 2012 04:36 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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:TreeViewer white-out under non-Aero theme in Win7
Next Topic:Why ErrorDialog is not showing exception's stack trace from IStatus?
Goto Forum:
  


Current Time: Wed Jul 23 18:55:44 EDT 2025

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

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

Back to the top