Multiple IProgressMonitors? [message #332889] |
Wed, 12 November 2008 18:22 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Vladimir Grishchenko![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=vladgri%40hotmail.com) 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03181 seconds