Example #1
0
 private void updateRunButton() {
   for (OptionWidget widget : widgets)
     if (!widget.isValid()) {
       runLink.setVisible(false);
       runLink.setEnabled(false);
       return;
     }
   runLink.setEnabled(true);
   runLink.setVisible(true);
 }
Example #2
0
  private void doRun() {
    for (OptionWidget optionWidget : widgets) optionWidget.setOptionValue();

    action.run();
    close();
  }