Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [DataBinding] Observe java.util.Collection
[DataBinding] Observe java.util.Collection [message #552590] Thu, 12 August 2010 17:49
Gaston M. Tonietti is currently offline Gaston M. ToniettiFriend
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.
Previous Topic:WizardDialog's finish button - Don't want to close dialog after finish button is pressed
Next Topic:[DataBinding] Observe java.util.Collection
Goto Forum:
  


Current Time: Thu Apr 25 04:15:23 GMT 2024

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

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

Back to the top