boolean () { popUntilCurrentTaskUnfinishedOrNull(); if (myCurrentTask != null) { ProgressIndicator indicator = myProgressTask.getIndicator(); if (indicator != null) { if (myProgressText != null) indicator.setText(myProgressText); if (myProgressText2 != null) indicator.setText2(myProgressText2); indicator.setFraction((double)myIterationsFinished++ / myTotalIterations); } myCurrentTask.iteration(); } return true; }