Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » TextAttribute background of keuword
TextAttribute background of keuword [message #34659] Wed, 26 November 2008 14:49
Eclipse UserFriend
Originally posted by: situchenghao.yahoo.com.cn

Hi,

TextAttribute has below Constructors:
TextAttribute(Color foreground)
TextAttribute(Color foreground, Color background, int style)

Now I'm using
IToken keywordToken = new Token(new
TextAttribute(Display.getCurrent().getSystemColor(SWT.COLOR_ DARK_RED),Display.getCurrent().getSystemColor(SWT.COLOR_WHIT E),
SWT.BOLD));
to indicate keywords, but when that line is highlighted, the background
color of that word is still white, it's ugly.

And I found in java source editor, the background color of keyword is
white also, but when that line is highlighted, the background color of
that keyword changed to as same as the highlight color.

I notice keyword in java source editor is also using BOLD font.

Does some one know how to implement same finction as java editor?

Thanks for your help.
Chenghao Situ.
Previous Topic:Problem with Hyperlink Presenter
Next Topic:TextAttribute background of keuword
Goto Forum:
  


Current Time: Thu Apr 25 18:16:08 GMT 2024

Powered by FUDForum. Page generated in 0.03111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top