return ExitCode.OK;
}
public static void showIntensityPlot(PeakList peakList, PeakListRow rows[]) {
ParameterSet parameters = MZmineCore.getConfiguration()
.getModuleParameters(IntensityPlotModule.class);
parameters.getParameter(IntensityPlotParameters.peakList).setValue(
new PeakList[]{peakList});
parameters.getParameter(IntensityPlotParameters.dataFiles).setChoices(
peakList.getRawDataFiles());
parameters.getParameter(IntensityPlotParameters.dataFiles).setValue(
peakList.getRawDataFiles());
parameters.getParameter(IntensityPlotParameters.selectedRows)
.setChoices(rows);
parameters.getParameter(IntensityPlotParameters.selectedRows).setValue(
rows);
UserParameter projectParams[] = MZmineCore.getCurrentProject()
.getParameters();
Object xAxisSources[] = new Object[projectParams.length + 1];
xAxisSources[0] = IntensityPlotParameters.rawDataFilesOption;
for (int i = 0; i < projectParams.length; i++) {
xAxisSources[i + 1] = new ParameterWrapper(projectParams[i]);
}
parameters.getParameter(IntensityPlotParameters.xAxisValueSource)
.setChoices(xAxisSources);
ExitCode exitCode = parameters.showSetupDialog();
if (exitCode == ExitCode.OK) {
IntensityPlotFrame newFrame = new IntensityPlotFrame(
parameters.cloneParameter());
MZmineCore.getDesktop().addInternalFrame(newFrame);
}
}