GP-628 - Dialogs - test of greatly simplified parenting code

This commit is contained in:
dragonmacher 2021-01-29 14:31:16 -05:00
parent d8166ff6ec
commit b956870432
13 changed files with 242 additions and 174 deletions

View file

@ -68,8 +68,14 @@ public class WrappingTaskMonitor implements TaskMonitor {
delegate.removeCancelledListener(l);
}
newDelegate.setIndeterminate(delegate.isIndeterminate());
newDelegate.initialize(delegate.getMaximum());
if (delegate.isIndeterminate()) {
newDelegate.setIndeterminate(true);
}
else {
newDelegate.setIndeterminate(false);
newDelegate.initialize(delegate.getMaximum());
}
newDelegate.setProgress(delegate.getProgress());
newDelegate.setMessage(delegate.getMessage());
newDelegate.setCancelEnabled(delegate.isCancelEnabled());