Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » StatusLine
StatusLine [message #480226] Fri, 14 August 2009 08:53 Go to next message
Eclipse UserFriend
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 16:22 Go to previous messageGo to next message
Eclipse UserFriend
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 05:20 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 08:45:50 EDT 2025

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

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

Back to the top