Skip to main content


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
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 43
Registered: July 2011
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 SchindlFriend
Messages: 6651
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
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 43
Registered: July 2011
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: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 Apr 24 20:30:43 GMT 2024

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

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

Back to the top