Table - LabelProvider - Images [message #271654] |
Thu, 16 September 2004 11:33 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds