Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse RCP 3.x - Updating IStatusLineManager of Workbench
Eclipse RCP 3.x - Updating IStatusLineManager of Workbench [message #1059927] Wed, 22 May 2013 04:27
Tomas Kramaric is currently offline Tomas Kramaric
Messages: 5
Registered: August 2012
Junior Member
Anybody knows how to update IStatusLineManager outside ApplicationWorkbenchWindowAdvisor ?

I tried following approach but it throws NullPointerException

IStatusLineManager statusLine = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorSite().getActionBars().getStatusLineManager();
statusLine.setMessage("Test Message");


I even tried to execute same code from inside:
display.asyncExec(...)

But same result: NullPointerException on getStatusLineManager()

Is there any possibility to use some Equinox oSGI service to update StatusLine of Workbench somehow more comfortable, without making static reference to ApplicationWorkbenchWindowAdvisor ?
Rolling Eyes
Previous Topic:Version and Build Number in About Dialog
Next Topic:JFace TableViewer Listener to deselect previously selected row
Goto Forum:
  


Current Time: Thu Aug 21 22:06:29 EDT 2014

Powered by FUDForum. Page generated in 0.12137 seconds