Bug 127438 junit view: fast view icon shows "completed" state when view is shown
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java
public void partDeactivated(IWorkbenchPartReference ref) { }
		public void partOpened(IWorkbenchPartReference ref) { }
		
		public void partVisible(IWorkbenchPartReference ref) {
			if (getSite().getId().equals(ref.getId())) {
				fPartIsVisible= true;
			}
		}
		
		public void partHidden(IWorkbenchPartReference ref) {
			if (getSite().getId().equals(ref.getId())) {
				fPartIsVisible= false;
			}
		}
	};
	
	protected boolean fPartIsVisible= false;
	
	private class RunnerViewHistory extends ViewHistory {
		public void configureHistoryListAction(IAction action) {
			action.setText("&History...");
			JUnitPlugin.setLocalImageDescriptors(action, "history_list.gif"); 
		}
		public void configureHistoryDropDownAction(IAction action) {
			action.setToolTipText("Test Run History...");
			JUnitPlugin.setLocalImageDescriptors(action, "history_list.gif"); 
		}
		public String getHistoryListDialogTitle() {
			return "Test Runs";
		}