Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » text in Status bar
text in Status bar [message #290347] Wed, 24 August 2005 07:43 Go to next message
Eclipse UserFriend
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
Re: text in Status bar [message #290361 is a reply to message #290347] Wed, 24 August 2005 10:06 Go to previous messageGo to next message
Eclipse UserFriend
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 00:08 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:How does one surface the IPropertySource for an IContentsOutlinePage
Next Topic:Plugin developed does not show
Goto Forum:
  


Current Time: Tue Jul 08 15:12:39 EDT 2025

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

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

Back to the top