Bug 127441 junit view: showing errors only takes a long time
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java
}
	
	private boolean isShowFailuresOnly() {
		return fFailuresOnlyFilter != null;
	}
	/**
	 * To be called periodically by the TestRunnerViewPart (in the UI thread).
	 */
	public void processChangesInUI() {
		TestRoot testRoot;
		if (fTestRunSession != null) {
			testRoot= fTestRunSession.getTestRoot();
		} else {
			testRoot= null;
			fNeedRefresh= true;
		}
		
		if (fNeedRefresh) {
			registerViewerRefresh();
			fNeedRefresh= false;
			fTreeViewer.setInput(testRoot);
			
		} else {
			Object[] toUpdate;
			synchronized (this) {
				toUpdate= fNeedUpdate.toArray();
				fNeedUpdate.clear();
			}
			if (isShowFailuresOnly() && testRoot != null) {
				for (int i= 0; i < toUpdate.length; i++) {