chemclipse icon indicating copy to clipboard operation
chemclipse copied to clipboard

Unify using the ProgressMonitor

Open eselmeister opened this issue 5 years ago • 0 comments

Generally, the SubMonitor approach shall be used instead of monitor.subTask(...):

SubMonitor subMonitor = SubMonitor.convert(monitor, "The task", 10);
try {
	...
	subMonitor.worked(1);
} finally {
	SubMonitor.done(subMonitor);
}

eselmeister avatar Dec 12 '20 08:12 eselmeister