Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] SubMonitor

On 21 May 2010 21:23, John Cortell <rat042@xxxxxxxxxxxxx> wrote:
> Can someone more familiar with SubMonitor than I confirm that
>    AbstractCLaunchDelegate2.buildProject(IProject, String, IProgressMonitor)
> should be calling pm.done() instead of localmonitor.done() in its finally
> section?

I can't see this in either AbstractCLaunchDelegate2 (or
AbstractCLaunchDelegate...). Did you mean this?

In general each method taking an IProgressMonitor expects a pristine
monitor and should call beingTask / done(). When calling other
methods, you pass in a sub monitor which does some work in the
top-level monitor (if your top-level method has beginTask'd).


> John
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx

Back to the top