Bug 26298 JUnit: Can not go to inner class and view goes crazy
Build 20021113 1. Create new Java project 'JUnit' with JUnit in it 2. Select Run... -> JUnit 3. Select project 'JUnit' and select "All tests..." 4. Press "Run" 5. Go to the JUnit view, observe several errors/failures 6. Observe when moving the mouse over the results: first one stays selected 7. Double click on each result starting from the top ==> reached one (4th, was an inner class) which resulted in an error dialog (see attached picture) 8. Confirm the dialog 9. The input in the lower pane now changes as you hover over the (errors/failures) Nothing in the log
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/HierarchyRunView.java
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jdt.junit.ITestRunListener;
/*
 * A view that shows the contents of a test suite
 * as a tree.
 */
class HierarchyRunView implements ITestRunView, IMenuListener {
	/**
	 * The tree widget
	 */
	private Tree fTree;
	
	public static final int IS_SUITE= -1;	
	/**
	 * Helper used to resurrect test hierarchy
	 */
	private static class SuiteInfo {
		public int fTestCount;
		public TreeItem fTreeItem;
		
		public SuiteInfo(TreeItem treeItem, int testCount){
			fTreeItem= treeItem;
			fTestCount= testCount;
		}