GT-2376: more code review fixes; changed 'release' method to 'finished'

This commit is contained in:
adamopolous 2019-05-09 17:32:55 -04:00
parent ea9e1c2dda
commit d8740850e4
5 changed files with 56 additions and 15 deletions

View file

@ -65,6 +65,17 @@ public class SecondaryTaskMonitor implements TaskMonitor {
parentMonitor.setInitialized(init);
}
/**
* Secondary monitors should not be able to reset progress or revert back
* to an uninitialized state; hence the override.
*/
@Override
public void finished() {
synchronized (this) {
setMessage("");
}
}
@Override
public boolean isCancelEnabled() {
return parentMonitor.isCancelEnabled();