Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » StatusLine
StatusLine [message #480226] Fri, 14 August 2009 12:53 Go to next message
Santhosh Missing name is currently offline Santhosh Missing nameFriend
Messages: 12
Registered: July 2009
Junior Member
Hi All,

My requirement is to update the status Line of the Eclipse IDE based on
the Status of the JMS Connection we use .

getStatusLineManager from postWindowOpen of the workbenchWindowAdvisor
provides a way to update the status line.

the StatusLineManager can also be accessed from a View or an Editor too .

But my Problem is that , the JMS related logic are neither in a View or
Editor.

How do i get to update the Status Line from a Class which is independent
of a view or an editor ?How do i get the statusLine context here ?

Thanks in advance
Re: StatusLine [message #480354 is a reply to message #480226] Sat, 15 August 2009 20:22 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Santosh,

If there are active views or editors you can query the workbench with
constructs like this:


PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getActiveEditor()
...

Otherwise save a reference to the StatusLineManager in your Advisor to pick
up later.

Best regards,

Wim Jongman


> Hi All,
>
> My requirement is to update the status Line of the Eclipse IDE based on
> the Status of the JMS Connection we use .
>
> getStatusLineManager from postWindowOpen of the workbenchWindowAdvisor
> provides a way to update the status line.
>
> the StatusLineManager can also be accessed from a View or an Editor too .
>
> But my Problem is that , the JMS related logic are neither in a View or
> Editor.
>
> How do i get to update the Status Line from a Class which is independent
> of a view or an editor ?How do i get the statusLine context here ?
>
> Thanks in advance
Re: StatusLine [message #480463 is a reply to message #480226] Mon, 17 August 2009 09:20 Go to previous message
Remo Loetscher is currently offline Remo LoetscherFriend
Messages: 18
Registered: July 2009
Junior Member
Hi Santhosh,

The chapter "Adding toolbars to trim areas" of the eclipse help page
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench_cmd_menus.htm
explains how to add controls to a "trim" area.

hth,

Remo

Santhosh wrote:
> Hi All,
> My requirement is to update the status Line of the Eclipse IDE based on
> the Status of the JMS Connection we use .
>
> getStatusLineManager from postWindowOpen of the workbenchWindowAdvisor
> provides a way to update the status line.
>
> the StatusLineManager can also be accessed from a View or an Editor too .
>
> But my Problem is that , the JMS related logic are neither in a View or
> Editor.
> How do i get to update the Status Line from a Class which is independent
> of a view or an editor ?How do i get the statusLine context here ?
>
> Thanks in advance
Previous Topic:How to place a view at the bottom with a 100% width
Next Topic:Java Web Start, Eclipse RCP and Mac
Goto Forum:
  


Current Time: Fri Apr 19 03:40:14 GMT 2024

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

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

Back to the top