public void onSelected(
     @Nullable final SMTestProxy selectedTestProxy,
     @NotNull final TestResultsViewer viewer,
     @NotNull final TestFrameworkRunningModel model) {
   // TODO: tests o "onSelected"
   SMRunnerUtil.runInEventDispatchThread(
       new Runnable() {
         public void run() {
           if (ScrollToTestSourceAction.isScrollEnabled(model)) {
             OpenSourceUtil.openSourcesFrom(model.getTreeView(), false);
           }
         }
       },
       ModalityState.NON_MODAL);
 }
Exemplo n.º 2
0
  private void selectWithoutNotify(
      final AbstractTestProxy testProxy, @Nullable final Runnable onDone) {
    if (testProxy == null) {
      return;
    }

    SMRunnerUtil.runInEventDispatchThread(
        new Runnable() {
          public void run() {
            if (myTreeBuilder.isDisposed()) {
              return;
            }
            myTreeBuilder.select(testProxy, onDone);
          }
        },
        ModalityState.NON_MODAL);
  }