From b4ed2878053cbeadf009c6cd08baad7de2adfc10 Mon Sep 17 00:00:00 2001 From: plusik Date: Wed, 14 Dec 2016 10:39:03 -0500 Subject: [PATCH] Brought code up-to-date with MSDK --- pom.xml | 2 +- .../plots/msspectrum/MsSpectrumPlotWindowController.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 6452a23..8e2dea4 100644 --- a/pom.xml +++ b/pom.xml @@ -180,7 +180,7 @@ io.github.msdk msdk-all - 0.0.7-SNAPSHOT + 0.0.8-SNAPSHOT diff --git a/src/main/java/io/github/mzmine/modules/plots/msspectrum/MsSpectrumPlotWindowController.java b/src/main/java/io/github/mzmine/modules/plots/msspectrum/MsSpectrumPlotWindowController.java index 3ee3400..1ee7a8c 100644 --- a/src/main/java/io/github/mzmine/modules/plots/msspectrum/MsSpectrumPlotWindowController.java +++ b/src/main/java/io/github/mzmine/modules/plots/msspectrum/MsSpectrumPlotWindowController.java @@ -64,7 +64,7 @@ import io.github.msdk.datamodel.rawdata.MsFunction; import io.github.msdk.datamodel.rawdata.MsScan; import io.github.msdk.datamodel.rawdata.RawDataFile; -import io.github.msdk.io.mgf.MgfExportAlgorithm; +import io.github.msdk.io.mgf.MgfFileExportMethod; import io.github.msdk.io.msp.MspExportAlgorithm; import io.github.msdk.io.mzml.MzMLFileExportMethod; import io.github.msdk.io.txt.TxtExportAlgorithm; @@ -846,7 +846,8 @@ public void handleExportMGF(Event event) { final File finalFile = file; new Thread(() -> { try { - MgfExportAlgorithm.exportSpectra(finalFile, spectra); + MgfFileExportMethod mgfEx = new MgfFileExportMethod(spectra, finalFile); + mgfEx.execute(); } catch (Exception e) { MZmineGUI.displayMessage("Unable to export: " + e.getMessage()); e.printStackTrace();