workbench status line [message #90651] |
Wed, 09 July 2003 21:17  |
Eclipse User |
|
|
|
Please help. I am trying to create a progress monitor on the status line
of workbench. I successfully created one with IRunnableWithProgress.
However, I cannot use the approach because the request to control the
progress monitor comes from outside the "run".
What would be an easy way to create a progress monitor on the workbench
statue line directly? I found that
ApplicationWindow.getStatusLineManager().getProgressMonitor( )
would be a good candidate, but I couldn't get to it from the "workbench"
(IWorkbench or IWorkbenchWindow).
What am I missing?
Thanks in advance.
JK
|
|
|
|
|
|
Re: workbench status line [message #91162 is a reply to message #91147] |
Thu, 10 July 2003 13:23   |
Eclipse User |
|
|
|
Thanks for the info, but I am trying to avoid using IRunnableWithProgress
and create IProgressMonitor object directly on the status line of
workbench. Since my request to create Progress monitor comes from an
external component, I couldn't make the IRunnableWithProgress working.
The "run" function cannot return while the progress monitor is up. If I
create a separate thread for the "run", then it is not a UI thread to
update the progress monitor.
All I want to do is to create a progress monitor widget on the status line
of workbench and control it. Conceptually, it sounds simple, but I cannot
figure out how to get the status line from IWorkbench.
JK
Simon Arsenault wrote:
> Look at IWorkbenchWindow.run(boolean, boolean, IRunnableWithProgress) method
> (actually, this method is on IRunnableContext which IWorkbenchWindow
> extends)
> Simon :-)
> "JK Lah" <jk.lah@intel.com> wrote in message
> news:bek2lv$dkq$1@eclipse.org...
> > Daniel Megert wrote:
> >
> > > JK Lah wrote:
> >
> > > >Please help. I am trying to create a progress monitor on the status
> line
> > > >of workbench. I successfully created one with IRunnableWithProgress.
> > > >However, I cannot use the approach because the request to control the
> > > >progress monitor comes from outside the "run".
> > > >
> > > >What would be an easy way to create a progress monitor on the workbench
> > > >statue line directly? I found that
> > > >
> > > > ApplicationWindow.getStatusLineManager().getProgressMonitor( )
> > > >
> > > >would be a good candidate, but I couldn't get to it from the
> "workbench"
> > > >(IWorkbench or IWorkbenchWindow).
> > > >
> > > Get the site of your editor (IEditorSite) or view (IViewSite) and then
> > > getViewSite().getActionBars().getStatusLineManager()
> >
> > > HTH
> > > Dani
> >
> > Hi Dani,
> > Thanks for the reply. However, I am trying to provide a progress meter
> > service to an external component. So, I normally start with
> >
> > PlatformUI.getWorkbench()
> >
> > Is there a way to get IEditorSite from IWorkbench?
> > JK
> >
> >
|
|
|
Re: workbench status line [message #91177 is a reply to message #91162] |
Thu, 10 July 2003 13:33  |
Eclipse User |
|
|
|
Originally posted by: simon.ibm.oti.lab
There is no API for you to add something to the status bar that is global to
the window. Only the active view/editor has control of the status line.
Simon :-)
"JK Lah" <jk.lah@intel.com> wrote in message
news:bek7dm$j3c$1@eclipse.org...
> Thanks for the info, but I am trying to avoid using IRunnableWithProgress
> and create IProgressMonitor object directly on the status line of
> workbench. Since my request to create Progress monitor comes from an
> external component, I couldn't make the IRunnableWithProgress working.
> The "run" function cannot return while the progress monitor is up. If I
> create a separate thread for the "run", then it is not a UI thread to
> update the progress monitor.
>
> All I want to do is to create a progress monitor widget on the status line
> of workbench and control it. Conceptually, it sounds simple, but I cannot
> figure out how to get the status line from IWorkbench.
>
> JK
>
> Simon Arsenault wrote:
>
> > Look at IWorkbenchWindow.run(boolean, boolean, IRunnableWithProgress)
method
> > (actually, this method is on IRunnableContext which IWorkbenchWindow
> > extends)
>
> > Simon :-)
>
> > "JK Lah" <jk.lah@intel.com> wrote in message
> > news:bek2lv$dkq$1@eclipse.org...
> > > Daniel Megert wrote:
> > >
> > > > JK Lah wrote:
> > >
> > > > >Please help. I am trying to create a progress monitor on the
status
> > line
> > > > >of workbench. I successfully created one with
IRunnableWithProgress.
> > > > >However, I cannot use the approach because the request to control
the
> > > > >progress monitor comes from outside the "run".
> > > > >
> > > > >What would be an easy way to create a progress monitor on the
workbench
> > > > >statue line directly? I found that
> > > > >
> > > > > ApplicationWindow.getStatusLineManager().getProgressMonitor( )
> > > > >
> > > > >would be a good candidate, but I couldn't get to it from the
> > "workbench"
> > > > >(IWorkbench or IWorkbenchWindow).
> > > > >
> > > > Get the site of your editor (IEditorSite) or view (IViewSite) and
then
> > > > getViewSite().getActionBars().getStatusLineManager()
> > >
> > > > HTH
> > > > Dani
> > >
> > > Hi Dani,
> > > Thanks for the reply. However, I am trying to provide a progress
meter
> > > service to an external component. So, I normally start with
> > >
> > > PlatformUI.getWorkbench()
> > >
> > > Is there a way to get IEditorSite from IWorkbench?
> > > JK
> > >
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03688 seconds