Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Table - LabelProvider - Images
Table - LabelProvider - Images [message #271654] Thu, 16 September 2004 11:33
Eclipse UserFriend
Hello,

When I want to display an image not in the first column of a (swt) table
the text from column one always has some indent.

I used the TableViewerExample and moved the "completed column" with the
checkbox image from column 1 to column 3.
The effect can easily be reproduced when the getColumnImage returns an
image not for the first column.
public Image getColumnImage(Object element, int columnIndex) {

if (columnIndex == 2)
return getImage(CHECKED_IMAGE); // getImageDescriptor + createImage
return null;
}

In a news group articel from 2002 I read:
"The image slot in the first column of the Table is reserved for TableTree
to
display the +/- image".

Does this mean that when in at least on column will contain a image the
first column will get this text indent?

I work with Eclipse 3.0.0

Regards
Minou
Previous Topic:Table - LabelProvider - Images
Next Topic:daily build statistics and archive of daily build information
Goto Forum:
  


Current Time: Thu May 08 07:27:42 EDT 2025

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

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

Back to the top