Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » text in Status bar
text in Status bar [message #290347] Wed, 24 August 2005 11:43 Go to next message
Nicolas Tanghe is currently offline Nicolas TangheFriend
Messages: 19
Registered: July 2009
Junior Member
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 14: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 04: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: Thu Apr 25 02:31:18 GMT 2024

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

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

Back to the top