Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
Added message to Chromatogram Builder setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-pluskal committed Apr 28, 2019
1 parent f2aeae7 commit 74c1e29
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@

package net.sf.mzmine.modules.masslistmethods.chromatogrambuilder;

import java.awt.Window;

import net.sf.mzmine.main.MZmineCore;
import net.sf.mzmine.parameters.Parameter;
import net.sf.mzmine.parameters.dialogs.ParameterSetupDialog;
import net.sf.mzmine.parameters.impl.SimpleParameterSet;
import net.sf.mzmine.parameters.parametertypes.DoubleParameter;
import net.sf.mzmine.parameters.parametertypes.MassListParameter;
Expand All @@ -28,6 +31,7 @@
import net.sf.mzmine.parameters.parametertypes.selectors.ScanSelection;
import net.sf.mzmine.parameters.parametertypes.selectors.ScanSelectionParameter;
import net.sf.mzmine.parameters.parametertypes.tolerances.MZToleranceParameter;
import net.sf.mzmine.util.ExitCode;

public class ChromatogramBuilderParameters extends SimpleParameterSet {

Expand Down Expand Up @@ -58,4 +62,19 @@ public ChromatogramBuilderParameters() {
mzTolerance, suffix});
}

public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
String message =
"<html><b>Note:</b> starting with MZmine 2.39, this module is considered deprecated <br>"
+ "and will be removed in future MZmine versions. Please use the <b>ADAP Chromatogram Builder</b>,<br>"
+ "which is much faster and generates better results.<br>"
+ "Contact the developers if you have any questions or concerns.</html>";

ParameterSetupDialog dialog =
new ParameterSetupDialog(parent, valueCheckRequired, this, message);
dialog.setVisible(true);
return dialog.getExitCode();


}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>Chromatogram builder</h1>

<p style="color: red">
<b>
As of April 2019, this module is considered deprecated and will be removed in future MZmine versions.
Starting with MZmine 2.39, this module is considered deprecated and will be removed in future MZmine versions.
Please use the ADAP Chromatogram Builder, which is much faster and generates better results.
Contact the developers if you have any questions or concerns.
</b>
Expand Down

0 comments on commit 74c1e29

Please sign in to comment.