- {
- // clustalw2 menu entry
- JMenuItem noParamMenuItem = new JMenuItem("ClustalW2 with defaults");
- SlivkaWSInstance clustalo;
- try
- {
- clustalo = new SlivkaWSInstance(client, client.getService("clustalw"));
- } catch (IOException e)
- {
- throw new IOError(e);
- }
- noParamMenuItem.addActionListener((ActionEvent e) -> {
- AlignmentView msa = alignFrame.gatherSequencesForAlignment();
- if (msa != null)
- {
- new MsaWSClient(
- clustalo, alignFrame.getTitle(), msa, false, true, alignFrame.getViewport().getAlignment().getDataset(),
- alignFrame
- );
- }
- });
- submenu.add(noParamMenuItem);