progressDialog.setTitle("Exporting PSMs. Please Wait...");
final int userChoice = psmSelectionComboBoxSwath.getSelectedIndex();
ArrayList<String> ptms = new ArrayList<String>();
if (userChoice == 3) {
PtmChooser ptmChooser = new PtmChooser(peptideShakerGUI, peptideShakerGUI.getSearchParameters().getModificationProfile().getAllNotFixedModifications(), ptms);
if (ptmChooser.isCanceled()) {
return;
}
ptms = ptmChooser.getSelection();
}
final ArrayList<String> ptmSelection = ptms;
new Thread(new Runnable() {
public void run() {