ExportFormatSelectionDialog exportFormatSelectionDialog = new ExportFormatSelectionDialog(this, true);
if (!exportFormatSelectionDialog.isCanceled()) {
final File selectedFile;
final ExportFormat exportFormat = exportFormatSelectionDialog.getFormat();
// get the file to send the output to
if (exportFormat == ExportFormat.text) {
selectedFile = peptideShakerGUI.getUserSelectedFile(".txt", "Tab separated text file (.txt)", "Export...", false);
} else {