Skip to main content

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 08:27
Tomas Kramaric is currently offline Tomas KramaricFriend
Messages: 8
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:

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: Tue Dec 07 13:16:45 GMT 2021

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

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

Back to the top