[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Manipulate TreeItem colors from viewer?


Extension of the question.

Is there a convinient way to get the TreeItem corresponding to the object
in the LabelProviders getText method?

What I want to do could look like this.

public MyLabelProvider extends LabelProvider{
..
public String getText(Object element) {
TreeItem item = convinientAndFastGetMethod(element);
// Do stuff with item.
// return some String
}
..
}


Best Regards
-Thomas