How to hight words in table viewer [message #328139] |
Thu, 15 May 2008 08:15 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #328176 is a reply to message #328140] |
Fri, 16 May 2008 11:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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...
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds