[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: DataBindings on Trees

Christian Herrmann schrieb:
What type must my variable in the Pojo have?

Tom Schindl wrote:
So your binding is:

IObservableValue uiObs = ViewerObservables.observeSelection(treeViewer);
IObservableValue modelObs = BeanObservables.observeValue(....);
ctx.bindvalue(uiObs,modelObs,null,null);

Is it possible that your POJO doesn't fully follow the beanspec e.g. you are not implementing PropertyChangeSupport appropiately.

The Pojo does not implement the PropertyChangeSupport, because the syncronisation is only on Request. Is that Support neccesary?



Well I think Databinding logs an none fatal error and in 3.4 there's support for plain POJOs too.


Although it is not working yet, i do not get an error. But in my Pojovariable there is always standing "null".

What type must my variable in the Pojo have?


The object type you are selecting.

Could you by chance provide a small snippet then I can fix it for you?

Tom

--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------