[DataBinding] Observe java.util.Collection [message #552590] |
Thu, 12 August 2010 17:49 |
Gaston M. Tonietti Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Hi all,
I have an object which has a collection property, but the class of this property only implements java.util.Collection.
So when I want to bind it to a table viewer, obviously, the method BeansObservables.observeSet(element, "collectionProp") fails due to a ClassCastException.
It could be nice to have a method observeCollection wich casts the values to java.util.Collection instead of casting it to an specific type of collection, but it is nowhere.
I can't either figure out the right place to wrap the collection inside a proxy implementing the Set interface, since the value is taken directly from element very deep inside databinding code.
Any piece of advice is very welcome.
Thank you so much in advance.
Gaston.
|
|
|
Powered by
FUDForum. Page generated in 0.02937 seconds