IProgressMonitor usage [message #327157] |
Fri, 11 April 2008 19:01 ![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: vcciubot.uwaterloo.ca
Hi all,
I'm trying to understand the proper usage of progress monitors. Here's my
scenario:
I am being passed a monitor by the workbench. The task I run manipulates
resources, creation mainly. All these operations require their own
monitor.
How do I get a 'submonitor' from the original progress monitor to pass to
the resource operations? I'd expect the submonitor's cancel status to be
influenced by the parent monitor.
thanks in advance,
vlad
|
|
|
|
Re: IProgressMonitor usage [message #327163 is a reply to message #327162] |
Fri, 11 April 2008 22:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![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: vcciubot.uwaterloo.ca
Got it!
thanks
vlad
On Fri, 11 Apr 2008 13:44:04 -0700, Darin Swanson wrote:
> monitor.beginTask("taskName", totalTicks);
> new SubProgressMonitor(monitor, portionOfTicks1)
> or
> SubMonitor.convert(IProgressMonitor, "taskName", portionOfTicks)
>
> I am less familiar with the SubMonitor usage..
> HTH
> Darins
> http://runnerwhocodes.blogspot.com
>
> "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
> news:pan.2008.04.11.19.00.59.636628@uwaterloo.ca...
>> Hi all,
>>
>> I'm trying to understand the proper usage of progress monitors. Here's my
>> scenario:
>>
>> I am being passed a monitor by the workbench. The task I run manipulates
>> resources, creation mainly. All these operations require their own
>> monitor.
>>
>> How do I get a 'submonitor' from the original progress monitor to pass to
>> the resource operations? I'd expect the submonitor's cancel status to be
>> influenced by the parent monitor.
>>
>> thanks in advance,
>> vlad
>>
|
|
|
Re: IProgressMonitor usage [message #327313 is a reply to message #327163] |
Tue, 15 April 2008 13:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Jerome Lanneluc![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=jerome_lanneluc%40fr.ibm.com) Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Vlad Ciubotariu wrote:
> Got it!
>
> thanks
> vlad
> On Fri, 11 Apr 2008 13:44:04 -0700, Darin Swanson wrote:
>
>> monitor.beginTask("taskName", totalTicks);
>> new SubProgressMonitor(monitor, portionOfTicks1)
>> or
>> SubMonitor.convert(IProgressMonitor, "taskName", portionOfTicks)
>>
>> I am less familiar with the SubMonitor usage..
>> HTH
>> Darins
>> http://runnerwhocodes.blogspot.com
>>
>> "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
>> news:pan.2008.04.11.19.00.59.636628@uwaterloo.ca...
>>> Hi all,
>>>
>>> I'm trying to understand the proper usage of progress monitors. Here's my
>>> scenario:
>>>
>>> I am being passed a monitor by the workbench. The task I run manipulates
>>> resources, creation mainly. All these operations require their own
>>> monitor.
>>>
>>> How do I get a 'submonitor' from the original progress monitor to pass to
>>> the resource operations? I'd expect the submonitor's cancel status to be
>>> influenced by the parent monitor.
>>>
>>> thanks in advance,
>>> vlad
>>>
>
See also http://www.eclipse.org/articles/Article-Progress-Monitors/ar ticle.html
|
|
|
|
Powered by
FUDForum. Page generated in 0.04338 seconds