question: private void updateProgress ( int currentProgress , int totalCount ) { jobProgressBar . setMaximum ( totalCount ) ; jobProgressBar . setValue ( totalCount != 0 ? currentProgress : jobProgressBar . getMinimum ( ) ) ; jobProgressBar . setString ( totalCount != 0 ? currentProgress + "/" + totalCount : "" ) ; jobProgressBar . setIndeterminate ( totalCount == 0 ) ; }
target:  Updates progress bar. Resets it if totalCount = 0