TreeViewer and CUSTOM_VARIANT [message #88372] |
Mon, 19 May 2008 09:26  |
Eclipse User |
|
|
|
Hi,
I can not set the treeviewers font color with custom variant.
I tried:
viewer.getTree().setData(WidgetUtil.CUSTOM_VARIANT, "myStyle");
List.myStyle {
color: #ff0000;
}
and Tree.myStyle {
color: #ff0000;
}
This does not work.
Just using:
List {
color: #ff0000;
}
Works perfectly.
Regards,
Markus
|
|
|
|
|
|
|
|
|
|
|
Re: TreeViewer and CUSTOM_VARIANT AND IColorProvider [message #90683 is a reply to message #90489] |
Thu, 29 May 2008 04:34   |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Markus,
Markus Krüger wrote:
> when do you think will this be fixed? I need this really bad.
I'm sorry, but this issue is related to a problem with the underlying
tree implementation and cannot easily be fixed in 1.1. The problem is
that TreeItem colors would override selection and disabled colors. After
the 1.1 release we'll be going to make a fresh start with the tree which
will make this problem obsolete.
Regards, Ralf
>> Hi Markus,
>>
>> Markus Krüger wrote:
>>> I also experience problems with the IColorProvider. Implementing this in
>>> TreeProvider does also not work setting the foreground color.
>>> Maybe this is the same problem?
>> this is very likely caused by bug 218420: [TreeItem] setForeground(Color),
>> setForeground(int, Color), setBackground(int, Color) does not work
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=218420
>>
>> I will have a look into these problems soon.
>>
>> Best regards,
>> Ralf
|
|
|
|
Powered by
FUDForum. Page generated in 0.08198 seconds