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
/**
	 * The current orientation; either <code>VIEW_ORIENTATION_HORIZONTAL</code>
	 * <code>VIEW_ORIENTATION_VERTICAL</code>.
	 */
	private int fCurrentOrientation;
	/**
	 * Map storing TestInfos for each executed test keyed by
	 * the test name.
	 */
	private Map fTestInfos= new HashMap();
	/**
	 * The first failure of a test run. Used to reveal the
	 * first failed tests at the end of a run.
	 */
	private List fFailures= new ArrayList();
	protected JUnitProgressBar fProgressBar;
	protected ProgressImages fProgressImages;
	protected Image fViewImage;
	protected CounterPanel fCounterPanel;
	protected boolean fShowOnErrorOnly= false;
	protected Clipboard fClipboard;
	protected volatile String fStatus;
	/** 
	 * The tab that shows the stack trace of a failure
	 */
	private FailureTrace fFailureTrace;
	/** 
	 * The collection of ITestRunTabs
	 */
	protected Vector fTestRunTabs = new Vector();