Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TreeViewer and CUSTOM_VARIANT
TreeViewer and CUSTOM_VARIANT [message #88372] Mon, 19 May 2008 13:26 Go to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
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 [message #88577 is a reply to message #88372] Mon, 19 May 2008 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

thanks for the hint. I opened bug 232825 and try to fix it asap.

Best regards, Ralf

Markus Krüger wrote:
> 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 #89156 is a reply to message #88577] Wed, 21 May 2008 11:55 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi,
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?

Regards,
Markus


"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:g0sabs$528$1@build.eclipse.org...
> Hi Markus,
>
> thanks for the hint. I opened bug 232825 and try to fix it asap.
>
> Best regards, Ralf
>
> Markus Kr
Re: TreeViewer and CUSTOM_VARIANT AND IColorProvider [message #89502 is a reply to message #89156] Fri, 23 May 2008 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

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
Re: TreeViewer and CUSTOM_VARIANT [message #89953 is a reply to message #88577] Mon, 26 May 2008 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Ralf Sternberg wrote:
> thanks for the hint. I opened bug 232825 and try to fix it asap.

Fixed in CVS head. It is now possible to theme tree background and
foreground with a custom variant e.g. "mytree" using either using either

..mytree {
...
}

or

List.mytree {
...
}

This is because the Tree does not have back-/foreground colors of its
own yet and uses the List colors instead.

Cheers, Ralf
Re: TreeViewer and CUSTOM_VARIANT [message #89983 is a reply to message #89953] Mon, 26 May 2008 11:54 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Just tested it, but still does not take any effect...

I user:
List.navigation, *.navigation {

color: #ff0000;

background-color: #ffff00;

}

And

viewer.getTree().setData(WidgetUtil.CUSTOM_VARIANT, "navigation");



Regards,

markus



"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:g1e3q5$6ca$1@build.eclipse.org...
> Ralf Sternberg wrote:
>> thanks for the hint. I opened bug 232825 and try to fix it asap.
>
> Fixed in CVS head. It is now possible to theme tree background and
> foreground with a custom variant e.g. "mytree" using either using either
>
> .mytree {
> ...
> }
>
> or
>
> List.mytree {
> ...
> }
>
> This is because the Tree does not have back-/foreground colors of its own
> yet and uses the List colors instead.
>
> Cheers, Ralf
Re: TreeViewer and CUSTOM_VARIANT [message #89999 is a reply to message #89983] Mon, 26 May 2008 13:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

Markus Krüger wrote:
> Just tested it, but still does not take any effect...
>
> I user:
> List.navigation, *.navigation {
>
> color: #ff0000;
>
> background-color: #ffff00;
>
> }
>
> And
>
> viewer.getTree().setData(WidgetUtil.CUSTOM_VARIANT, "navigation");

This should work now. Can you please checkout again, my commit was
somewhat delayed (13:21)?

Regards, Ralf
Re: TreeViewer and CUSTOM_VARIANT [message #90014 is a reply to message #89999] Mon, 26 May 2008 14:17 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi Ralf,

now it works, thanks for fixing.

Regards,
Markus

"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:g1efl1$qdr$1@build.eclipse.org...
> Hi Markus,
>
> Markus Kr
Re: TreeViewer and CUSTOM_VARIANT AND IColorProvider [message #90489 is a reply to message #89502] Wed, 28 May 2008 09:49 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi Ralf,

when do you think will this be fixed? I need this really bad.

Regards,
Markus

"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:g15up7$9bk$1@build.eclipse.org...
> Hi Markus,
>
> Markus Kr
Re: TreeViewer and CUSTOM_VARIANT AND IColorProvider [message #90683 is a reply to message #90489] Thu, 29 May 2008 08:34 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: TreeViewer and CUSTOM_VARIANT AND IColorProvider [message #90745 is a reply to message #90683] Thu, 29 May 2008 09:50 Go to previous message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
OK, thanks for the info. Keep uip the work, you guys are doing a very good
job.

Regards,
Markus

"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:g1lpqa$t3l$1@build.eclipse.org...
> Hi Markus,
>
> Markus Kr
Previous Topic:ENTER key on treeviewer and tableviewer
Next Topic:Theme files in CSS format
Goto Forum:
  


Current Time: Fri Apr 19 12:19:23 GMT 2024

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

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

Back to the top