}
public void reset() {
final Facet facet = editorContext.getFacet();
if (facet != null) {
IvyIdeaFacetConfiguration configuration = (IvyIdeaFacetConfiguration) facet.getConfiguration();
txtIvyFile.setText(configuration.getIvyFile());
chkOverrideProjectIvySettings.setSelected(!configuration.isUseProjectSettings());
txtIvySettingsFile.setText(configuration.getIvySettingsFile());
chkOnlyResolveSpecificConfigs.setSelected(configuration.isOnlyResolveSelectedConfigs());
rbnUseCustomIvySettings.setSelected(configuration.isUseCustomIvySettings());
rbnUseDefaultIvySettings.setSelected(!configuration.isUseCustomIvySettings());
Set<Configuration> allConfigurations;
try {
allConfigurations = loadConfigurations();
} catch (ParseException e) {
allConfigurations = null;
} catch ( IvySettingsNotFoundException e ) {
allConfigurations = null;
} catch ( IvySettingsFileReadException e ) {
allConfigurations = null;
}
if (StringUtils.isNotBlank(configuration.getIvyFile())) {
if (allConfigurations != null) {
tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel(allConfigurations, configuration.getConfigsToResolve()));
} else {
tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel());
}
selectedConfigurations = tblConfigurationSelection.getSelectedConfigurations();
updateConfigurationsTable();