}
public static IsotopePattern showIsotopePredictionDialog() {
ParameterSet parameters = MZmineCore.getConfiguration()
.getModuleParameters(IsotopePatternCalculator.class);
ExitCode exitCode = parameters.showSetupDialog();
if (exitCode != ExitCode.OK)
return null;
String formula = parameters.getParameter(
IsotopePatternCalculatorParameters.formula).getValue();
int charge = parameters.getParameter(
IsotopePatternCalculatorParameters.charge).getValue();
Polarity polarity = parameters.getParameter(
IsotopePatternCalculatorParameters.polarity).getValue();
double minAbundance = parameters.getParameter(
IsotopePatternCalculatorParameters.minAbundance).getValue();
try {
IsotopePattern predictedPattern = calculateIsotopePattern(formula,
minAbundance, charge, polarity);