Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse 3.0 Jobs and Progress handling examples?
Eclipse 3.0 Jobs and Progress handling examples? [message #265791] Fri, 06 August 2004 14:19 Go to next message
Eclipse UserFriend
Originally posted by: mar.almaden.ibm.com

Does anyone have pointers to simple examples of how to use
the org.eclipse.core.runtime.jobs API?

I'm trying to work out how to run a compute intensive job
and show a progress bar while the job runs. (A cancel button
would be great, but the simple progress bar is what is
confounding me.)

Thanks,
Michael Richmond
Re: Eclipse 3.0 Jobs and Progress handling examples? [message #265816 is a reply to message #265791] Fri, 06 August 2004 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

If you just run a straight job then it uses the progress bar in the
Progress View. Or it shows in the progress bar on the bottom right of
the Eclipse window. There is no need to bring up a separate progress
dialog. This allows the job to continue running in the background
without stopping the rest of the ui. This is what the builder does.

I.e:

1) create a subclass of Job that does what you want in the
run(IProgressMonitor) method
2) job.schedule() or job.schedule(long delay)



--
Thanks, Rich Kulp

Re: Eclipse 3.0 Jobs and Progress handling examples? [message #265885 is a reply to message #265791] Sat, 07 August 2004 13:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chris.eclipsefaq.org

Michael Richmond wrote:

> Does anyone have pointers to simple examples of how to use
> the org.eclipse.core.runtime.jobs API?

> I'm trying to work out how to run a compute intensive job
> and show a progress bar while the job runs. (A cancel button
> would be great, but the simple progress bar is what is
> confounding me.)

> Thanks,
> Michael Richmond

http://eclipsefaq.org, Chapter 6, FAQ 127

Chris
Re: Eclipse 3.0 Jobs and Progress handling examples? [message #266036 is a reply to message #265791] Mon, 09 August 2004 05:48 Go to previous messageGo to next message
Eclipse UserFriend
Michael Richmond wrote:

> Does anyone have pointers to simple examples of how to use
> the org.eclipse.core.runtime.jobs API?

> I'm trying to work out how to run a compute intensive job
> and show a progress bar while the job runs. (A cancel button
> would be great, but the simple progress bar is what is
> confounding me.)

> Thanks,
> Michael Richmond

you can look at org.eclipse.ui.examples.job Plugin on CVS
Re: Eclipse 3.0 Jobs and Progress handling examples? [message #266106 is a reply to message #265791] Mon, 09 August 2004 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mar.almaden.ibm.com

Thanks for those pointers. I now have various jobs handled in my
plugin. Is there any way to disable the run in background button
on the progress dialog?

Thanks.
Re: Eclipse 3.0 Jobs and Progress handling examples? [message #266286 is a reply to message #266106] Tue, 10 August 2004 11:43 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

No. If you disable the "Run in Background" button, then there is no
value to using jobs. You might as well just use
IProgressService.busyCursorWhile(runnable), which will create a modal
progress dialog after a brief delay.
--

Michael Richmond wrote:
> Thanks for those pointers. I now have various jobs handled in my
> plugin. Is there any way to disable the run in background button
> on the progress dialog?
>
> Thanks.
Previous Topic:Programmatic access to development workbench for logging?
Next Topic:RCP and right_to_left
Goto Forum:
  


Current Time: Mon May 12 04:14:45 EDT 2025

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

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

Back to the top