|
|
|
Re: How can I write to the status line bar? [message #289388 is a reply to message #289201] |
Thu, 04 August 2005 10:23 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02847 seconds