Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » List with images
List with images [message #444931] Fri, 24 February 2006 15:37 Go to next message
Antonio Gurisatti is currently offline Antonio GurisattiFriend
Messages: 109
Registered: July 2009
Senior Member
I need to build a list where its entries represent different kinds of objects. So, I'd like to add an image to each entry in the List so you can see the kind of object it represents.

The problem is that I don't know how to do it or found an example.

I would appreciate very much any help

Thanks
Re: List with images [message #444939 is a reply to message #444931] Fri, 24 February 2006 18:51 Go to previous message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
Antonio Gurisatti wrote:

> I need to build a list where its entries represent different kinds of
objects. So, I'd like to add an image to each entry in the List so you can see
the kind of object it represents.

> The problem is that I don't know how to do it or found an example.

> I would appreciate very much any help

> Thanks

Using JFace:
Here is an article that describes how to use a table viewer but uses no
images (which looks like a list if you use only one column):
http://www.eclipse.org/articles/Article-Table-viewer/table_v iewer.html

Here is an article that shows how to use images for your label provider
(see above):
http://www.eclipse.org/articles/Article-Using%20Images%20In% 20Eclipse/Using%20Images%20In%20Eclipse.html

An excellent article on how to use a TreeViewer (the TableViewer you want
is very simpliar and reading the API differenes will probably lead you in
the right direction):
http://www.eclipse.org/articles/treeviewer-cg/TreeViewerArti cle.htm

This site has a lot of SWT and JFace examples. I have found useful things
here but it is hard to find the JFace examples sometimes:
http://www.java2s.com/ExampleCode/SWT-JFace-Eclipse/CatalogS WT-JFace-Eclipse.htm

For SWT examples this site is great:
http://www.eclipse.org/swt/snippets/

I hope one of those helps,

Ian
Previous Topic:Updating the status line
Next Topic:ctrl-c / ctrl-v detection
Goto Forum:
  


Current Time: Thu Dec 05 07:23:39 GMT 2024

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

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

Back to the top