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);
}
Aggregations