Bug 475747 - Implement automatic cancellation checks in SubMonitor

Add "split", a replacement for newChild which automatically performs
a cancellation check if either the newly-created child will
consume one or more ticks or a certain number of trivially-small
children have been created since the last cancellation check.

A cancellation check will throw OperationCanceledException if
the progress monitor has been cancelled.

Signed-off-by: Stefan Xenos <sxenos@gmail.com>
Change-Id: I8e7c2d88b238f7b1a17f80f80f0f9fc3b9d30d8b
1 file changed