Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Generic IStructuredContentProvider
Generic IStructuredContentProvider [message #315621] Wed, 16 May 2007 15:34 Go to next message
Eclipse UserFriend
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 #315755 is a reply to message #315621] Tue, 22 May 2007 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bokowski.ca.ibm.com

ObservableListContentProvider is a generic IStructuredContentProvider, you
can find it in org.eclipse.jface.databinding.

"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
Re: Generic IStructuredContentProvider [message #315767 is a reply to message #315755] Tue, 22 May 2007 15:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Boris Bokowski wrote:
> ObservableListContentProvider is a generic IStructuredContentProvider, you
> can find it in org.eclipse.jface.databinding.

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
>
>
Re: Generic IStructuredContentProvider [message #315981 is a reply to message #315767] Mon, 28 May 2007 10:30 Go to previous message
Eclipse UserFriend
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
>>
Previous Topic:Eclipse for Vista 64-bit
Next Topic:Validation without binding
Goto Forum:
  


Current Time: Mon Jul 14 12:57:36 EDT 2025

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

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

Back to the top