예제 #1
0
  /**
   * @param setPropertyFields if True, the user's values will be applied to the properties set
   * @return Whether the user has set all the values on the dialog correctly
   */
  private boolean processPropertiesInternal(boolean setPropertyFields, boolean showMessage) {
    Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();

    while (it.hasNext()) {
      PropertyInputPanel inputPanel = it.next();
      Property property = inputPanel.getDescriptor();

      if (inputPanel.isValueSet()) {
        if (setPropertyFields) {

          myConfigManager.setProperty(property.getName(), inputPanel.getValue());
        }
      } else {
        if (showMessage) {
          UserMessages.showWarning(property.getName() + " is not set or is incomplete");
        }
        pack();
        return false;
      }
    }
    pack();
    return true;
  }