IProgressMonitor usage [message #327157] |
Fri, 11 April 2008 15:01  |
Eclipse User |
|
|
|
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 18:06   |
Eclipse User |
|
|
|
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 09:12   |
Eclipse User |
|
|
|
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.07539 seconds