|
|
|
|
|
|
Re: How can I write to the status line bar? [message #289459 is a reply to message #289457] |
Fri, 05 August 2005 06: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.04462 seconds