if you mean text color per element / item use IColorProvider:
"YOURLabelProvider implements IColorProvider, ITableLabelProvider"
(I'm implementing ITableLabelProvider because all my trees have columns...)
IColorProvider adds two methods:
public Color getForeground(Object element)
public Color getBackground(Object element)
if you add columns and want to set the color per column, there is also
an ITableColorProvider interface...
hope this helps!
Dominik Erbsland wrote:
> I saw similar problem descriptions in here but non of the topics led to
> a solution.
> I want to change the text color in a treeviewer made with SWT/JFace. is
> there an easy way to do this?
> thanks for any help in advance.