protected void applyEditorTo()

in plugin/src/main/java/com/attachme/plugin/AttachmeSettingsEditor.java [58:69]


  protected void applyEditorTo(@NotNull AttachmeRunConfig s) throws ConfigurationException {
    int port;
    try {
      port = Integer.parseInt(portField.getText());
      if (port <= 0) {
        throw new ConfigurationException("Port has to be greater than 0");
      }
    } catch (NumberFormatException e) {
      throw new ConfigurationException("Port has to be a number");
    }
    s.setPort(port);
  }