private void updateRunButton() { for (OptionWidget widget : widgets) if (!widget.isValid()) { runLink.setVisible(false); runLink.setEnabled(false); return; } runLink.setEnabled(true); runLink.setVisible(true); }
private void doRun() { for (OptionWidget optionWidget : widgets) optionWidget.setOptionValue(); action.run(); close(); }