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
final Image fTestRunOKIcon= TestRunnerViewPart.createImage("eview16/junitsucc.gif"); 
	final Image fTestRunFailIcon= TestRunnerViewPart.createImage("eview16/juniterr.gif"); 
	final Image fTestRunOKDirtyIcon= TestRunnerViewPart.createImage("eview16/junitsuccq.gif"); 
	final Image fTestRunFailDirtyIcon= TestRunnerViewPart.createImage("eview16/juniterrq.gif"); 
	
	
	static final String TAG_PAGE= "page"; 
	static final String TAG_RATIO= "ratio"; 
	static final String TAG_TRACEFILTER= "tracefilter";  
	static final String TAG_ORIENTATION= "orientation"; 
	static final String TAG_SCROLL= "scroll"; 
	
	
	static final int VIEW_ORIENTATION_VERTICAL= 0;
	static final int VIEW_ORIENTATION_HORIZONTAL= 1;
	static final int VIEW_ORIENTATION_AUTOMATIC= 2;
	
	private IMemento fMemento;	
	Image fOriginalViewImage;
	IElementChangedListener fDirtyListener;
	
	
	private CTabFolder fTabFolder;
	private SashForm fSashForm;
	
	private Action fNextAction;
	private Action fPreviousAction;
	private Composite fCounterComposite;
	private Composite fParent;
	private UpdateUIJob fUpdateJob;