@Override
  protected void validateSettings(Key changedKey, String oldValue, String newValue) {

    StatusInfo status = new StatusInfo();

    if (phpExes.getAllItems().length == 0) {
      status =
          new StatusInfo(
              StatusInfo.WARNING,
              "No PHP executable configured. Dependencies cannot be managed properly.");
    }

    if (buttonGroup != null && buttonGroup.isSelected(1)) {
      if (!validateScript(scriptField.getText())) {
        status =
            new StatusInfo(
                StatusInfo.WARNING, "The selected file is not a valid php script/archive.");
      }
    }

    fContext.statusChanged(status);
  }
 protected boolean doUseScriptInsideProject() {
   return buttonGroup.isSelected(0);
 }