Search in sources :

Example 1 with KovatsIndexExtractionDialog

use of net.sf.mzmine.modules.tools.kovats.KovatsIndexExtractionDialog in project mzmine2 by mzmine.

the class GnpsGcSubmitParameters method openKovatsDialog.

/**
 * OPen Kovats creation dialog, save file and retrieve file
 *
 * @param pn
 */
private void openKovatsDialog(FileNameComponent pn) {
    // at least one raw data file in project
    RawDataFile[] raw = MZmineCore.getProjectManager().getCurrentProject().getDataFiles();
    if (raw == null || raw.length <= 0) {
        DialogLoggerUtil.showMessageDialogForTime(MZmineCore.getDesktop().getMainWindow(), "No RAW data files", "Cannot use Kovats extraction without raw data files in this project", 3500);
        return;
    }
    // todo open dialog
    ParameterSet param = MZmineCore.getConfiguration().getModuleParameters(KovatsIndexExtractionModule.class);
    KovatsIndexExtractionDialog kd = new KovatsIndexExtractionDialog(null, param, savedFile -> pn.setValue(savedFile));
    kd.setVisible(true);
}
Also used : ParameterSet(net.sf.mzmine.parameters.ParameterSet) SimpleParameterSet(net.sf.mzmine.parameters.impl.SimpleParameterSet) KovatsIndexExtractionDialog(net.sf.mzmine.modules.tools.kovats.KovatsIndexExtractionDialog) RawDataFile(net.sf.mzmine.datamodel.RawDataFile)

Aggregations

RawDataFile (net.sf.mzmine.datamodel.RawDataFile)1 KovatsIndexExtractionDialog (net.sf.mzmine.modules.tools.kovats.KovatsIndexExtractionDialog)1 ParameterSet (net.sf.mzmine.parameters.ParameterSet)1 SimpleParameterSet (net.sf.mzmine.parameters.impl.SimpleParameterSet)1