Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to hight words in table viewer
How to hight words in table viewer [message #328139] Thu, 15 May 2008 08:15 Go to next message
Eclipse UserFriend
Originally posted by: zhangqing.cse.buaa.edu.cn

Hey!

I want to high light several words in the table viewer (change their font
and color). Such as

-------------------------------------
address| Xueyuan Road, Beijing, China
-------------------------------------

I want to change China in to bold and red in this table viewer. It seems
that I can just set font or color for the whole table item...
Re: How to hight words in table viewer [message #328140 is a reply to message #328139] Thu, 15 May 2008 08:38 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No Message Body
Re: How to hight words in table viewer [message #328176 is a reply to message #328140] Fri, 16 May 2008 11:35 Go to previous message
Eclipse UserFriend
Originally posted by: zhangqing.cse.buaa.edu.cn

Thank you tom. I'll try it.

On Thu, 15 May 2008 16:38:10 +0800, Tom Schindl
<tom.schindl@bestsolution.at> wrote:

> Since 3.3 JFace provides support for owner draw and this is the only way
> to achieve this.
>
> In 3.4 we added a new LabelProvider which works like StyledText but
> you'll need JFace 3.4 to make this work.
> To see how it works take a look at:
> http://wiki.eclipse.org/JFaceSnippets#Snippet049StyledCellLa belProvider
>
> Tom
>
>
> Qing Zhang schrieb:
>> Hey!
>> I want to high light several words in the table viewer (change their
>> font and color). Such as
>> -------------------------------------
>> address| Xueyuan Road, Beijing, China
>> -------------------------------------
>> I want to change China in to bold and red in this table viewer. It
>> seems that I can just set font or color for the whole table item...
>
>
Previous Topic:Perform Deep Search
Next Topic:Problem with JDT or CDT in Ganymede M7
Goto Forum:
  


Current Time: Sat Jul 27 19:25:32 GMT 2024

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

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

Back to the top