|
Re: Accessing Workbench StatusBar Contribution [message #499701 is a reply to message #499534] |
Mon, 23 November 2009 19:05 |
|
Hi Juan,
It is indeed hard to find the status line manager. I don't know its lifecycle
but you have a reference of it in your ApplicationActionBarAdvisor.
@Override
protected void fillStatusLine(IStatusLineManager statusLine) {
super.fillStatusLine(statusLine);
}
Best regards,
Wim Jongman
> 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.03214 seconds