fProgressBar.refresh(hasErrorsOrFailures);
int ticksDone; if (startedCount == 0) ticksDone= 0; else if (startedCount == totalCount && ! fTestRunSession.isRunning()) ticksDone= totalCount; else ticksDone= startedCount - 1;  fProgressBar.reset(hasErrorsOrFailures, stopped, ticksDone, totalCount);
	private void refreshCounters() {		int startedCount;		int totalCount;		int errorCount;		int failureCount;		boolean hasErrorsOrFailures;				if (fTestRunSession != null) {			startedCount= fTestRunSession.getStartedCount();			totalCount= fTestRunSession.getTotalCount();			errorCount= fTestRunSession.getErrorCount();			failureCount= fTestRunSession.getFailureCount();			hasErrorsOrFailures= hasErrorsOrFailures();		} else {			startedCount= 0;			totalCount= 0;			errorCount= 0;			failureCount= 0;			hasErrorsOrFailures= false;		}		fCounterPanel.setRunValue(startedCount);		fCounterPanel.setTotal(totalCount);		fCounterPanel.setErrorValue(errorCount);		fCounterPanel.setFailureValue(failureCount);		fProgressBar.refresh(hasErrorsOrFailures);	}