| Change background color of in text editor selected words [message #1007763] |
Thu, 07 February 2013 07:39  |
Ralph Gerbig Messages: 555 Registered: November 2009 |
Senior Member |
|
|
Hello,
I use the following code in a SelectionListener to change the background color of the word currently selected.
sourceViewer.getTextWidget().setStyleRange(new StyleRange(new TextStyle(null, black, grey)));
The problem is that nothing happens and no Exception is thrown. What do I miss here? Is there a other way to do it?
Ralph
|
|
|
|
Powered by
FUDForum. Page generated in 0.01548 seconds