Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How can I write to the status line bar?
How can I write to the status line bar? [message #289182] Mon, 01 August 2005 15:54 Go to next message
Eclipse UserFriend
Originally posted by: mendoza.anafocus.com

Hello.
Can anyone please tell me how to write to the status line bar from my
plug-in?
Thanks.
Re: How can I write to the status line bar? [message #289184 is a reply to message #289182] Mon, 01 August 2005 16:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Carlos" <mendoza@anafocus.com> wrote in message
news:0ecc2a95564d9b0fbd3a3675ba887205$1@www.eclipse.org...
> Hello.
> Can anyone please tell me how to write to the status line bar from my
> plug-in?
> Thanks.
>

org.eclipse.ui.texteditor.StatusLineContributionItem
---
Sunil
Re: How can I write to the status line bar? [message #289201 is a reply to message #289184] Tue, 02 August 2005 09:32 Go to previous messageGo to next message
Marcus Olk is currently offline Marcus OlkFriend
Messages: 130
Registered: July 2009
Senior Member
Sunil Kamath wrote:
> org.eclipse.ui.texteditor.StatusLineContributionItem

If you don't need any text editor and don't want to depend
on the bundle of plugins that org.eclipse.ui.texteditor implies
there's no way (I know of) but to copy the source of
StatusLineContributionItem and save it as a local class.
That class is way too simple and basically is a somthing
non-editor specific that it should be refactored.

Marcus
Re: How can I write to the status line bar? [message #289388 is a reply to message #289201] Thu, 04 August 2005 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mendoza.anafocus.com

Marcus Olk wrote:

> Sunil Kamath wrote:
>> org.eclipse.ui.texteditor.StatusLineContributionItem

> If you don't need any text editor and don't want to depend
> on the bundle of plugins that org.eclipse.ui.texteditor implies
> there's no way (I know of) but to copy the source of
> StatusLineContributionItem and save it as a local class.
> That class is way too simple and basically is a somthing
> non-editor specific that it should be refactored.

> Marcus

Thanks.
I've also found that you only need to do this in order to write to the
status line bar from a view:


getViewSite().getActionBars().getStatusLineManager().setMess age( "Hello");

or from an editor:


getEditorSite().getActionBars().getStatusLineManager().setMe ssage( "Hello");

I guess StatusLineContributionItem is useful when you want to customize
the status line bar.
Re: How can I write to the status line bar? [message #289411 is a reply to message #289388] Thu, 04 August 2005 13:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Carlos" <mendoza@anafocus.com> wrote in message
news:f57400a6ea94c8cafcfac11509229b4a$1@www.eclipse.org...
> [snip]
> I've also found that you only need to do this in order to write to the
> status line bar from a view:
>
> getViewSite().getActionBars().getStatusLineManager().setMess age( "Hello");
>
> or from an editor:
>
>
> getEditorSite().getActionBars().getStatusLineManager().setMe ssage( "Hello");
>
> I guess StatusLineContributionItem is useful when you want to customize
> the status line bar.
>
Yes, otherwise there is no guarantee that your message won't get overwritten
immediately by some other component.
---
Sunil
Re: How can I write to the status line bar? [message #289457 is a reply to message #289388] Fri, 05 August 2005 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vducloux.cosmosbay-vectis.com

Hi, I have tried this and it works perfect. I instead set an Error
Message. thanks for the help.

But know how can make it disappear after like 3 seconds ?

thnaks in advance for the help,


Carlos wrote:
> Marcus Olk wrote:
>
>> Sunil Kamath wrote:
>>
>>> org.eclipse.ui.texteditor.StatusLineContributionItem
>
>
>> If you don't need any text editor and don't want to depend
>> on the bundle of plugins that org.eclipse.ui.texteditor implies
>> there's no way (I know of) but to copy the source of
>> StatusLineContributionItem and save it as a local class.
>> That class is way too simple and basically is a somthing
>> non-editor specific that it should be refactored.
>
>
>> Marcus
>
>
> Thanks.
> I've also found that you only need to do this in order to write to the
> status line bar from a view:
>
> getViewSite().getActionBars().getStatusLineManager().setMess age( "Hello");
>
> or from an editor:
>
>
> getEditorSite().getActionBars().getStatusLineManager().setMe ssage( "Hello");
>
> I guess StatusLineContributionItem is useful when you want to customize
> the status line bar.
>
Re: How can I write to the status line bar? [message #289459 is a reply to message #289457] Fri, 05 August 2005 10:22 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

Ducloux Victor wrote:
> Hi, I have tried this and it works perfect. I instead set an Error
> Message. thanks for the help.
>
> But know how can make it disappear after like 3 seconds ?
>
> thnaks in advance for the help,
>
>
> Carlos wrote:
>
>> Marcus Olk wrote:
>>
>>> Sunil Kamath wrote:
>>>
>>>> org.eclipse.ui.texteditor.StatusLineContributionItem
>>
>>
>>
>>> If you don't need any text editor and don't want to depend
>>> on the bundle of plugins that org.eclipse.ui.texteditor implies
>>> there's no way (I know of) but to copy the source of
>>> StatusLineContributionItem and save it as a local class.
>>> That class is way too simple and basically is a somthing
>>> non-editor specific that it should be refactored.
>>
>>
>>
>>> Marcus
>>
>>
>>
>> Thanks.
>> I've also found that you only need to do this in order to write to the
>> status line bar from a view:
>>
>> getViewSite().getActionBars().getStatusLineManager().setMess age( "Hello");
>>
>> or from an editor:
>>
>>
>> getEditorSite().getActionBars().getStatusLineManager().setMe ssage( "Hello");
>>
>>
>> I guess StatusLineContributionItem is useful when you want to
>> customize the status line bar.
>>
Use a seperate thread to set the statusbar to blank after 3 seconds.
Remember to use asynchExec or syncExec on Display for updating the
statusbar in your thread.

Regards
Stefan
Previous Topic:Performance Tests package - where can I get it ?
Next Topic:Searching for documentation about launching the OSGi framework...
Goto Forum:
  


Current Time: Thu Apr 25 17:22:12 GMT 2024

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

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

Back to the top