views:

202

answers:

1

How to color rows in a TreeViewer?

It seems there have been a couple of changes since the previous version, now we are migrating to Eclipse 3.4.

It would be great if you can provide a code sample or point me to an open-source project that does this.

+1  A: 

See this snippet which uses ITableColorProvider to color the cells of a list view. The same works for tables and trees.

Aaron Digulla