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();