[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Manipulate TreeItem colors from viewer?
|
- From: thomas.larsson@xxxxxxx (Thomas Larsson)
- Date: Wed, 8 Jun 2005 09:21:49 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: not organized
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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