This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we change the default selection color of setSelection() in jface

 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanna to highlight a specific node of a tree viewer while clicking on one button. For this I'm using the setSelection method of jface's tree viewer. It works but with default highlighting color. Is there any option to change the background or foreground color of specific node in jface tree viewer. I'm using the following code to highlight a specific node.



Any ideas to changing the background or foreground color of specific node in tree viewer or any option to change the background color of default highlighted selection...?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic