Bug 549903 - Replace usage of deprecated SubProgressMonitor with
SubMonitor

Also replaced the anti-pattern:
if(doMore) {
    doSomething(new SubProgressMonitor(monitor));
} else {
    monitor.worked();
}

As consequence skipped optional work will not move the progress bar
anymore but leave the space for the remaining tasks.

Change-Id: Id58944194449f58f887e8969d7ba9d7c16939f9c
Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
3 files changed