Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » workbench status line
workbench status line [message #90651] Wed, 09 July 2003 21:17 Go to next message
Eclipse UserFriend
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 #90799 is a reply to message #90651] Thu, 10 July 2003 03:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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
Re: workbench status line [message #91060 is a reply to message #90799] Thu, 10 July 2003 12:02 Go to previous messageGo to next message
Eclipse UserFriend
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 #91147 is a reply to message #91060] Thu, 10 July 2003 12:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

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 #91162 is a reply to message #91147] Thu, 10 July 2003 13:23 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
> > >
> > >
>
>
Previous Topic:basic framework question
Next Topic:Re: ActionSet
Goto Forum:
  


Current Time: Mon May 12 19:14:56 EDT 2025

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

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

Back to the top