|Re: Simple Jface ListViewer [message #330994]
||Wed, 20 August 2008 17:10
Originally posted by: eclipse-news.rizzoweb.com|
Zardosht Hodaie wrote:
> Hi all,
> i'm not sure if this post belongs to this group. if not sorry.
> Here is my problem. I want to have a simple ListViewer to show some
> elements. The SWT List shows only Strings and does not contains the
> unerlying Objects. JFace ListViewer needs a model. I thought ok, i make
> a list of elements, and set it as the input to my Jface listViewer. And
> i thought every time a change the input list, the changes should also be
> reflected in viewer. But i don't know what kind of list should i use for
> this. And if i have to write a ContentProvider myself?
> thanks in advance for your help,
Note: copying this to the eclipse.platform newsgroup.
I think you can use an ArrayContentProvider to do what you want; it
should handle any array or Collection as input.
Hope this helps,
Powered by FUDForum
. Page generated in 0.02121 seconds