Bug 70570 Show Junit view on error preference totally broken [JUnit]
R3.0 The state of the Java > JUnit > "Show Junit results view only if errors or failures occur" has no effect at all i.e. the view opens whether this preference is checked or not (minor detail: if JUnit is a fast view then the pref seems to work). While this is not yet a major bug it unfortunately also affects whether the JUnit view's title (progress) gets updated: there's a missing ! and hence it does not update the title when I uncheck this preference. The only time when the icon update should not be done is when the JUnit view hasn't been created yet.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java
listeners.toArray(listenerArray);
		System.arraycopy(listenerArray, 0, listenerArray, 1, listenerArray.length-1);
		listenerArray[0]= this;
		fTestRunnerClient.startListening(listenerArray, port);
		
		fLastLaunch= launch;
		setViewPartTitle(type);
		if (type instanceof IType)
			setTitleToolTip(((IType)type).getFullyQualifiedName());
		else
			setTitleToolTip(type.getElementName());
			
	}
	private void setViewPartTitle(IJavaElement type) {
		String title;
		if (type == null)
			title= " "; 
		else	
			title= type.getElementName();
		setContentDescription(title);
	}
	protected void aboutToLaunch() {
		String msg= JUnitMessages.getString("TestRunnerViewPart.message.launching"); 
		
		setInfoMessage(msg);
		fViewImage= fOriginalViewImage;
		firePropertyChange(IWorkbenchPart.PROP_TITLE);
	}
	public synchronized void dispose(){
		fIsDisposed= true;