Bug 25324 Ability to know when tests are finished [junit]
Hi, I'm writing a Cactus Plugin that extends the JUnit Plugin and I need to know when the tests have finished running in the TestRunner. There is a nice ITestRunListener interface for that. My idea was thus to implement this interface and somehow register my listener to the TestRunner (RemoteTestRunnerClient). However: 1/ Currently the RemoteTestRunnerClient implementation only supports one listener 2/ There is no API in TestRunnerViewPart to get access to the TestRunner I am attaching a patch that should provide this facility. However, I need your help to know if this is the right approach or not. Thank you -Vincent
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/HierarchyRunView.java
}
	/**
	 * Vector of SuiteInfo items
	 */
	private Vector fSuiteInfos= new Vector();
	/**
	 * Maps test names to TreeItems. 
	 * If there is one treeItem for a test then the
	 * value of the map corresponds to the item, otherwise
	 * there is a list of tree items.
	 */
	private Map fTreeItemMap= new HashMap();
	
	private TestRunnerViewPart fTestRunnerPart;
	
	private boolean fPressed= false;
	
	private final Image fOkIcon= TestRunnerViewPart.createImage("obj16/testok.gif"); 
	private final Image fErrorIcon= TestRunnerViewPart.createImage("obj16/testerr.gif"); 
	private final Image fFailureIcon= TestRunnerViewPart.createImage("obj16/testfail.gif"); 
	private final Image fHierarchyIcon= TestRunnerViewPart.createImage("obj16/testhier.gif"); 
	private final Image fSuiteIcon= TestRunnerViewPart.createImage("obj16/tsuite.gif"); 
	private final Image fSuiteErrorIcon= TestRunnerViewPart.createImage("obj16/tsuiteerror.gif"); 
	private final Image fSuiteFailIcon= TestRunnerViewPart.createImage("obj16/tsuitefail.gif"); 
	private final Image fTestIcon= TestRunnerViewPart.createImage("obj16/test.gif"); 
		
	public HierarchyRunView(CTabFolder tabFolder, TestRunnerViewPart runner) {
		fTestRunnerPart= runner;
		
		CTabItem hierarchyTab= new CTabItem(tabFolder, SWT.NONE);