internalState.getArtifactTypeSettings().setTypesForCategory(Sources, txtSourcesArtifactTypes.getText());
internalState.getArtifactTypeSettings().setTypesForCategory(Javadoc, txtJavadocArtifactTypes.getText());
}
public void reset() {
IvyIdeaProjectSettings config = internalState;
if (config == null) {
config = new IvyIdeaProjectSettings();
}
txtIvySettingsFile.setText(config.getIvySettingsFile());
chkValidateIvyFiles.setSelected(config.isValidateIvyFiles());
chkResolveTransitively.setSelected(config.isResolveTransitively());
chkUseCacheOnly.setSelected(config.isResolveCacheOnly());
chkBackground.setSelected(config.isResolveInBackground());
autoAttachSources.setSelected(config.isAlwaysAttachSources());
autoAttachJavadocs.setSelected(config.isAlwaysAttachJavadocs());
useYourOwnIvySettingsRadioButton.setSelected(config.isUseCustomIvySettings());
setPropertiesFiles(config.getPropertiesSettings().getPropertyFiles());
includeModuleNameCheckBox.setSelected(config.isLibraryNameIncludesModule());
includeConfigurationNameCheckBox.setSelected(config.isLibraryNameIncludesConfiguration());
ivyLogLevelComboBox.setSelectedItem(IvyLogLevel.fromName(config.getIvyLogLevelThreshold()));
txtSourcesArtifactTypes.setText(config.getArtifactTypeSettings().getTypesStringForCategory(Sources));
txtClassesArtifactTypes.setText(config.getArtifactTypeSettings().getTypesStringForCategory(Classes));
txtJavadocArtifactTypes.setText(config.getArtifactTypeSettings().getTypesStringForCategory(Javadoc));
}