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 #585901] 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:TextAttribute background of keuword
Next Topic:Issues to get the text of a combobox.
Goto Forum:
  


Current Time: Fri Sep 24 19:38:30 GMT 2021

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

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

Back to the top