[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Decorators like in CVS/SVN plug-in

Matthias pisze:
Hello!

I am registering my decorators at the decorator manager to decorate my label provider. This works very well. The suffix or prefix text should appear in another color than the text provided by the label provider. The CVS/SVN plugins have such a nice feature: they provide versioning information in a grayed color (in the package explorer), so that the user can easily distinguish between various information. If I change the color on the passed IDecorator (I am implmenting ILightWeightLabelDecorator) then the whole label has the changed color, not only the suffix/prefix text.

How can I achieve such a behaviour like done in CVS/SVN plug-ins?!? Are they using decorators or are they doing some other technique?!? Can someone give me any hints or code how get such results?

Thanks a lot,
Matthias

Hi,

I don't know how to achieve this, however, you can look at the cvs source code and see how it is done.
Here: http://wiki.eclipse.org/index.php/CVS_Howto you have the information, how to get the Eclipse source code from the repository.


--
kind regards,
Jakub

http://eclipser-blog.blogspot.com/
http://eclipse-po-polsku.blogspot.com/