|
Re: text in Status bar [message #290361 is a reply to message #290347] |
Wed, 24 August 2005 14:06 |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
There's a class called StatusLineManager that allows you to manage such status messages (including error messages, and/or icon types).
In fact, the Eclipse WorkbenchWindow has such a StatusManager already, and it's possible to do:
window.getStatusManager().setMessage("Message");
but that's only visible if you cast it to the 'internal' package, and not via the IWindow interface.
However, there's another method on the ApplicationWindow class called 'setStatus()' which delegates to this method, so the following should work:
--- 8< --- MyPlugin.java
/**
* This method is called upon plug-in activation
*/
public void start(BundleContext context) throws Exception {
super.start(context);
((ApplicationWindow)getWorkbench().getActiveWorkbenchWindow( )).setStatus( "Hi");
}
|
|
|
Re: text in Status bar [message #290401 is a reply to message #290347] |
Thu, 25 August 2005 04:08 |
Eclipse User |
|
|
|
Originally posted by: vgrishchenko.serena.com
I don't think you can make your text sticky, meaning other parties can
overwrite it and there will be no notification that you can handle to set it
back.
"Nicolas" <decotang@yahoo.fr> wrote in message
news:7108c68c3d5f0150e802d6af8692a9d5$1@www.eclipse.org...
> Hello,
>
> I would like display a text in the status bar in my eclipse application
> but these text must appear in any view or editor (a kind of global status
> bar).
>
> Someone have an idea ??
>
> Thanks a lot
> Nicolas
>
|
|
|
Powered by
FUDForum. Page generated in 0.03662 seconds