protected JTabbedPane createTestRunViews() { JTabbedPane pane = new JTabbedPane(); FailureRunView lv = new FailureRunView(this); fTestRunViews.addElement(lv); lv.addTab(pane); TestHierarchyRunView tv = new TestHierarchyRunView(this); fTestRunViews.addElement(tv); tv.addTab(pane); pane.addChangeListener( new ChangeListener() { public void stateChanged(ChangeEvent e) { testViewChanged(); } }); return pane; }
public void testViewChanged() { TestRunView view = (TestRunView) fTestRunViews.elementAt(fTestViewTab.getSelectedIndex()); view.activate(); }