[DataBindings] How to create a heterogeneous list of observables? [message #335743] |
Fri, 24 April 2009 18:38  |
Eclipse User |
|
|
|
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)?
|
|
|
|
|
|
|
Re: [DataBindings] How to create a heterogeneous list of observables? [message #335770 is a reply to message #335756] |
Tue, 28 April 2009 15:30  |
Eclipse User |
|
|
|
Matthew Hall wrote:
> Jon,
>
> Please copy paste the code you use to set up your viewer bindings and
> that should help to diagnose your problem.
>
> Matthew
>
This matter is currently being discussed via a bug (actually a non-bug)
filed in bugzilla. Those that are interested should go to bug 273648.
Essentially, ComputedList can be used for this purpose, but how and why
is unclear from the current javadoc.
--jon
|
|
|
Powered by
FUDForum. Page generated in 0.05383 seconds