void () { myRepository.setLoginUrl(myLoginURLText.getText()); myRepository.setTasksListUrl(myTasksListURLText.getText()); myRepository.setSingleTaskUrl(mySingleTaskURLText.getText()); myRepository.setLoginMethodType(HTTPMethod.valueOf((String)myLoginMethodTypeComboBox.getSelectedItem())); myRepository.setTasksListMethodType(HTTPMethod.valueOf((String)myTasksListMethodTypeComboBox.getSelectedItem())); myRepository.setSingleTaskMethodType(HTTPMethod.valueOf((String)mySingleTaskMethodComboBox.getSelectedItem())); myRepository.setDownloadTasksInSeparateRequests(myDownloadTasksInSeparateRequests.isSelected()); for (Map.Entry<JTextField, TemplateVariable> entry : myField2Variable.entrySet()) { TemplateVariable variable = entry.getValue(); JTextField field = entry.getKey(); variable.setValue(field.getText()); } for (Map.Entry<JRadioButton, ResponseType> entry : myRadio2ResponseType.entrySet()) { if (entry.getKey().isSelected()) { myRepository.setResponseType(entry.getValue()); } } super.apply(); }