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);
}

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 ) ; }
updates progress bar . resets it if totalcount = 0
