Eclipse RCP 3.x - Updating IStatusLineManager of Workbench [message #1059927] |
Wed, 22 May 2013 04:27 |
Eclipse User |
|
|
|
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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.03175 seconds