Example #1
0
  @Override
  public void onAction(Action action) {
    if (action instanceof ReadLogFiles) {
      getView().list(logStore.getLogFiles());

    } else if (action instanceof StreamLogFile) {
      streamingProgress.done();
      getView().open(logStore.getActiveLogFile());

    } else if (action instanceof SelectLogFile) {
      getView().open(logStore.getActiveLogFile());

    } else if (action instanceof SelectServerInstance) {
      onReset();
    }
  }
Example #2
0
 @Override
 protected void onReset() {
   super.onReset();
   circuit.dispatch(new ReadLogFiles());
   if (getView().isLogFileSelected() && logStore.getActiveLogFile() != null) {
     circuit.dispatch(new SelectLogFile(logStore.getActiveLogFile().getName()));
   }
 }