Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] Databinding Labelprovider + Chaining

[1] shows how to observe a property of an object to have a label updating, that works as long as it is a direct property of the (person) object.

[2] shows how to chain properties to access "sub-objects" (lets say persons address)

But how do I combine both?

IObservableMap streetName = BeanProperties.value(Person.class,
    "adress").value(BeanProperties.value(Address.class,
    "street")).observeDetail(knownElements);

obviously won't work as the "knownElements" are of type IObservableSet<Person> ...


[1] https://www.vogella.com/tutorials/EclipseDataBinding/article.html#observing-list-details [2] https://www.vogella.com/tutorials/EclipseDataBinding/article.html#chaining-properties


Back to the top