Generic IStructuredContentProvider [message #315621] |
Wed, 16 May 2007 15:34  |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
Is this really the right group for JFace questions?
Anyway, I'm curious if there are any generic implementations of
IStructuredContentProvider that use, for example, reflection to
implement getElements().
I'm surprised that I can't find any such thing, but since I haven't
actually tried to write one maybe I'm just underestimating how difficult
it would be.
TIA,
Eric
|
|
|
|
|
Re: Generic IStructuredContentProvider [message #315981 is a reply to message #315767] |
Mon, 28 May 2007 10:30  |
Eclipse User |
|
|
|
Originally posted by: bokowski.ca.ibm.com
Yes, this is new API in 3.3. For getting an IObservableList from a bean,
see BeansObservables. (Can be found in org.eclipse.core.databinding.beans.)
Returning the elements for a given input is trivial, the hard part is
notifying the viewer about changes in the model.
Boris
> Is this newly exposed (out of an internal package) for 3.3?
> Also, is it still dependent on the element implementing IObervableList? I
> implemented a proof of concept using Jakata BeanUtils and it seems to work
> with any arbitrary object. I guess I'm trying to gauge if it is something
> the community would find useful.
>
> Thanks,
> Eric
>
>
>>
>> "Eric Rizzo" <eclipse5@rizzoweb.com> wrote in message
>> news:f2fm9l$7ao$1@build.eclipse.org...
>>> Is this really the right group for JFace questions?
>>> Anyway, I'm curious if there are any generic implementations of
>>> IStructuredContentProvider that use, for example, reflection to
>>> implement getElements().
>>> I'm surprised that I can't find any such thing, but since I haven't
>>> actually tried to write one maybe I'm just underestimating how difficult
>>> it would be.
>>>
>>> TIA,
>>> Eric
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03875 seconds