suppress adap ims message in batch mode
package io.github.mzmine.modules.dataprocessing.featdet_adapchromatogrambuilder;
+import io.github.mzmine.datamodel.RawDataFile;
import io.github.mzmine.main.MZmineCore;
+import io.github.mzmine.modules.batchmode.BatchTask;
import io.github.mzmine.parameters.Parameter;
import io.github.mzmine.parameters.dialogs.ParameterSetupDialog;
import io.github.mzmine.parameters.impl.IonMobilitySupport;
@@ -118,6 +120,17 @@ public class ADAPChromatogramBuilderParameters extends SimpleParameterSet {
return IonMobilitySupport.RESTRICTED;
}
+ @Override
+ public boolean checkRawDataFileIonMobilitySupport(RawDataFile[] rawDataFiles,
+ Collection<String> errorMessages) {
+ // no restricted message in batch mode
+ if (MZmineCore.getTaskController().isTaskInstanceRunningOrQueued(BatchTask.class)) {
+ return true;
+ } else {
+ return super.checkRawDataFileIonMobilitySupport(rawDataFiles, errorMessages);
+ }
+ }
+
@Override
public boolean checkParameterValues(Collection<String> errorMessages) {
if (!super.checkParameterValues(errorMessages)) {
