// validate the pride xml file
if (validatePrideXml && !projectExportDialog.progressCancelled()) {
progressDialog.setPrimaryProgressCounterIndeterminate(true);
progressDialog.setTitle("Validating PRIDE XML. Please Wait...");
PrideXmlValidator validator = new PrideXmlValidator();
conversionCompleted = validator.validate(new File(outputFolderJTextField.getText(), outputFileName + ".xml"));
// see if any errors were found, and display them to the user
if (!conversionCompleted) {
JOptionPane.showMessageDialog(null, validator.getErrorsAsString(), "PRIDE XML Errors", JOptionPane.ERROR_MESSAGE);
}
} else {
conversionCompleted = true;
}
} catch (Exception e) {