Пример #1
0
  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;
  }
Пример #2
0
 public void testViewChanged() {
   TestRunView view = (TestRunView) fTestRunViews.elementAt(fTestViewTab.getSelectedIndex());
   view.activate();
 }