|[DataBindings] How to create a heterogeneous list of observables? [message #335743]
||Fri, 24 April 2009 22:38
| Jon Barrilleaux
Registered: July 2009
I'm trying to create a content provider for a common navigator view. |
I'm using ObservableListTreeContentProvider as the base class. Certain
levels of the tree require a heterogeneous mix of observable objects --
a single value from one source, and a list from another source, combined
and returned as an observable list for the content provider factory.
I attempted to use a ComputedList to do this, in several different ways,
but they all resulted in a wrong realm exception (deep in the bowels of
the databinding execution Display.getCurrent() returns null at some
point, which does not match the current non-null display for the realm).
Any suggestions on what is the best way to create a heterogeneous
observable list? Any suggestions on why ComputedList failed (it seemed
like the best way to achieve this)?
Powered by FUDForum
. Page generated in 0.01967 seconds