try {
allConfigurations = loadConfigurations();
chkOnlyResolveSpecificConfigs.setEnabled(allConfigurations != null);
if (allConfigurations != null) {
LOGGER.info("Detected configs in file " + txtIvyFile.getText() + ": " + allConfigurations.toString());
tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel(allConfigurations, getNames(selectedConfigurations)));
lblIvyFileMessage.setText("");
foundConfigsBefore = true;
} else {
File ivyFile = new File(txtIvyFile.getText());
if (ivyFile.isDirectory() || !ivyFile.exists()) {
lblIvyFileMessage.setText("Please enter the name of an existing ivy file.");
} else {
lblIvyFileMessage.setText("Warning: No configurations could be found in the given ivy file");
}
if (foundConfigsBefore) {
selectedConfigurations = tblConfigurationSelection.getSelectedConfigurations();
}
tblConfigurationSelection.setModel(new ConfigurationSelectionTableModel());
foundConfigsBefore = false;
}
} catch (ParseException e1) {
// TODO: provide link to error display dialog with full exception
lblIvyFileMessage.setText("Error parsing the file. If you use properties or specific ivy settings, configure those first.");