Accessing Workbench StatusBar Contribution [message #499534] |
Mon, 23 November 2009 05:01  |
Eclipse User |
|
|
|
Hello Everyone!
I need to access the statuslinemanager contribution but not using a view
or editor. Is it possible? I'm frightened it is not :(
The way i dont want to do this is the usual you can see in tutorials,
articles or forums threads:
IActionBars bars = getViewSite().getActionBars();
IStatusLineManager statusLine = bars.getStatusLineManager();
IProgressMonitor pm = statusLine.getProgressMonitor();
pm.beginTask("Doing work", IProgressMonitor.UNKNOWN);
pm.worked(1);
.... the actual work is done here...
pm.done();
I would need to access it by PlatformUI.getWorkbench.getActiveWindow()
or similar because I have a launch() button that executes a code and I
wanna put a progress bar with custom buttoms in the status line.
Thanks in advance
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04374 seconds