Bug 79660 Rerunning single test with keepalive: no indication when test run has finished [JUnit]
I200411240800 I launch tests in debug mode with 'Keep JUnit running ...' enabled. When rerunning single tests (test's context menu > Run), there's no indication when the test run has finished. If the test produces a different result than the last time, the user can maybe spot a change in the failure trace pane - otherwise, there's no sure way to tell whether the test has finished (apart from looking at the CPU load ;-). I would expect this: - view title becomes italic during the test run, and upright after end of run - view's ContentDescription changes to $test_name$ and then to "Finished after $not_so_many$ seconds"
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java
public ActivateOnErrorAction() {
			super(JUnitMessages.TestRunnerViewPart_activate_on_failure_only, IAction.AS_CHECK_BOX);
			try {
				setImageDescriptor(ImageDescriptor.createFromURL(JUnitPlugin.makeIconFileURL("obj16/failures.gif"))); 
			} catch (MalformedURLException e) {
				
			}
			setChecked(getShowOnErrorOnly());
		}
		public void run() {
			boolean checked= isChecked();
			fShowOnErrorOnly= checked;
			IPreferenceStore store= JUnitPlugin.getDefault().getPreferenceStore();
			store.setValue(JUnitPreferencesConstants.SHOW_ON_ERROR_ONLY, checked);
		}
	}
	
	public void init(IViewSite site, IMemento memento) throws PartInitException {
		super.init(site, memento);
		fMemento= memento;
		IWorkbenchSiteProgressService progressService= getProgressService();
		if (progressService != null)
			progressService.showBusyForFamily(TestRunnerViewPart.FAMILY_JUNIT_RUN);
	}
	
	private IWorkbenchSiteProgressService getProgressService() {
		Object siteService= getSite().getAdapter(IWorkbenchSiteProgressService.class);
		if(siteService != null)
			return (IWorkbenchSiteProgressService) siteService;
		return null;