// If our peak list is a list of mass candidates from the
// deconvolutedanalysis.massdetection module, use our custom table
// window.
if (peakList.getName().startsWith("Mass Candidates"))
MZmineCore.getDesktop().addInternalFrame(
new MassListTableWindow(peakList));
// Otherwise, use this module's PeakListTableWindow
else
MZmineCore.getDesktop().addInternalFrame(
new PeakListTableWindow(peakList, parameters));