new Thread(new Runnable() {
@Override
public void run() {
try {
OutputGenerator outputGenerator = new OutputGenerator(peptideShakerGUI);
String clipboardString = null;
if (tableIndex == TableIndex.MODIFIED_PEPTIDES_TABLE) {
outputGenerator.getPeptidesOutput(
null, displayedPeptides, null, true, false, true, true, true, true, true,
true, true, true, true, true, true, true, true, false, false, false, null, true);
} else if (tableIndex == TableIndex.RELATED_PEPTIDES_TABLE) {
outputGenerator.getPeptidesOutput(
null, relatedPeptides, null, true, false, true, true, true, true, true,
true, true, true, true, true, true, true, true, false, false, false, null, true);
} else if (tableIndex == TableIndex.MODIFIED_PSMS_TABLE) {
outputGenerator.getPSMsOutput(
null, identification.getPeptideMatch(getSelectedPeptide(false)).getSpectrumMatches(),
true, false, true, true, true, true,
true, true, true, true, true, true, true, false, false);
} else if (tableIndex == TableIndex.RELATED_PSMS_TABLE) {
outputGenerator.getPSMsOutput(
null, identification.getPeptideMatch(getSelectedPeptide(true)).getSpectrumMatches(),
true, false, true, true, true, true,
true, true, true, true, true, true, true, false, false);
} else if (tableIndex == TableIndex.PTM_TABLE) {
// @TODO: implement me!!