Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Multiple IProgressMonitors?
Multiple IProgressMonitors? [message #332889] Wed, 12 November 2008 18:22 Go to next message
Eclipse UserFriend
Originally posted by: alexm.xxx.yyy

I have a background job that consists of several parts that have
different rates of progress. The progress of each part can be tracked
separately, but its scope is not known until the part begins.

Thus, I cannot track the overall progress of the job. Ideally, I would
like to display an IProgressMonitor for each part, resetting it back to
zero every time the part begins, but I can only have one monitor, and it
is not reusable. And I cannot split the process into several separate jobs.

Any idea how to solve this problem?

Thanks,

Alex Molochnikov
Kelman Technologies Inc.
Re: Multiple IProgressMonitors? [message #332898 is a reply to message #332889] Thu, 13 November 2008 08:54 Go to previous message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 104
Registered: July 2009
Senior Member
Sounds like you need to use sub progress monitors. It is often challenging
to provide the user with exact progress but fortunately this is rarely
necessary, some meaningful visual progress and cancel-ability is usually
all that's needed. At the simplest you can divide the total work to be
done into equal chunks and supply each subtask with its own sub progress
monitor that will contribute to the total work up to the chunk size. There
is an article under the resources section on how to use progress monitors,
it is a good read.

-V.


Alex Molochnikov wrote:

> I have a background job that consists of several parts that have
> different rates of progress. The progress of each part can be tracked
> separately, but its scope is not known until the part begins.

> Thus, I cannot track the overall progress of the job. Ideally, I would
> like to display an IProgressMonitor for each part, resetting it back to
> zero every time the part begins, but I can only have one monitor, and it
> is not reusable. And I cannot split the process into several separate jobs.

> Any idea how to solve this problem?

> Thanks,

> Alex Molochnikov
> Kelman Technologies Inc.
Previous Topic:Expanding on the BuildManager
Next Topic:New to EFS
Goto Forum:
  


Current Time: Tue Jul 30 19:32:47 GMT 2024

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

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

Back to the top