Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to set the color of text in state line (how to set the color of text in state line )
how to set the color of text in state line [message #696001] Wed, 13 July 2011 00:00 Go to next message
Eclipse UserFriend
Can any one help me to resolve this question?

I want to change text style in state line for my rcp application.

I did it in ApplicationActionBarAdvisor.fillstatusLine method,
there is a parameter "IStatusLineManager", I use IStatusLineManager.setMessage("") method to set text. but I can't set stytle for text, how to do it ?


Thansk a lot~
(no subject) [message #696036 is a reply to message #696001] Wed, 13 July 2011 02:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yiqiao,

You have to contribute your own (StyledText) control to the status line.

Regards,

Wim


> Can any one help me to resolve this question?
>
> I want to change text style in state line for my rcp application.
>
> I did it in ApplicationActionBarAdvisor.fillstatusLine method,
> there is a parameter "IStatusLineManager", I use
IStatusLineManager.setMessage("") method to set text. but I can't set stytle
for text, how to do it ?
>
>
> Thansk a lot~
Re: (no subject) [message #696083 is a reply to message #696036] Wed, 13 July 2011 04:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi Wim,

Do you mean I have add an action or StatusLineContributionItem to status line?

Smile
Re: (no subject) [message #696485 is a reply to message #696036] Thu, 14 July 2011 01:28 Go to previous message
Eclipse UserFriend
I tried an other way:

Create a class "MyStatusItem" extends ContributionItem, copy all code from "StatusLineContributionItem" to "MyStatuesItem"(package must be same as "StatusLineContributionItem"), add style for label in "fill(Composite composite)" method.

then add this item to status line;

but the text in status line is align center, how to make it align left?

Shocked
Thanks.
Previous Topic:View persistency in workbench
Next Topic:Saving workbench layout on program exit
Goto Forum:
  


Current Time: Sun Aug 31 01:03:28 EDT 2025

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

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

Back to the top