presets = service.getParamStore().getPresets();
if (presets != null && presets.size() > 0)
{
JMenu presetlist = new JMenu("Run " + calcName + "with preset");
for (final WsParamSetI preset : presets)
{
final JMenuItem methodR = new JMenuItem(preset.getName());
methodR.setToolTipText(""
+ JvSwingUtils.wrapTooltip(""
+ (preset.isModifiable() ? "User Preset"
: "Service Preset") + "
"
+ preset.getDescription() + "
") + "");
methodR.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
AlignmentView msa = alignFrame
.gatherSequencesForAlignment();
new MsaWSClient(service, preset, alignFrame.getTitle(),
msa, false, true, alignFrame.getViewport()
.getAlignment().getDataset(), alignFrame);
}
});
presetlist.add(methodR);
}
msawsmenu.add(presetlist);
}
}
if (!submitGaps && canSubmitGaps())
{
submitGaps = true;
finished = false;
}
else
{
finished = true;
}
} while (!finished);
}
}