Bug 80778 JUnit view toolbar run button enabled when no test can be run [JUnit]
Version 3.1M3. JUnit view toolbar run button enabled when no test can be run/ -Run a JUnit test from the JUnit View. -Shutdown Eclipse. -Start Eclipse. -The JUnit view toolbar run button is enabled, clicking it does nothing. The button should be disabled when no test can be run. Additionally, the JUnit view could remember the last test run accross shutown/restarts. Gary
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java
protected Composite createProgressCountPanel(Composite parent) {
		Composite composite= new Composite(parent, SWT.NONE);
		GridLayout layout= new GridLayout();
		composite.setLayout(layout);
		setCounterColumns(layout); 
		
		fCounterPanel = new CounterPanel(composite);
		fCounterPanel.setLayoutData(
			new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
		fProgressBar = new JUnitProgressBar(composite);
		fProgressBar.setLayoutData(
				new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
		return composite;
	}
	public TestRunInfo getTestInfo(String testId) {
		if (testId == null)
			return null;
		return (TestRunInfo) fTestInfos.get(testId);
	}
	public void handleTestSelected(String testId) {
		handleTestSelected(getTestInfo(testId));
	}
	public void handleTestSelected(TestRunInfo testInfo) {
		if (testInfo == null) {
			showFailure(null); 
		} else {
			showFailure(testInfo);
		}
		
		fCopyAction.handleTestSelected(testInfo);