/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
// redundant at mo - but may change
JOptionPane.showMessageDialog(Desktop.desktop, MessageManager
.formatMessage("label.service_called_is_not_msa_service",
- new String[]
- { sh.serviceType }), MessageManager
+ new String[] { sh.serviceType }), MessageManager
.getString("label.internal_jalview_error"),
JOptionPane.WARNING_MESSAGE);
if ((wsInfo = setWebService(sh, false)) == null)
{
JOptionPane.showMessageDialog(Desktop.desktop, MessageManager
- .formatMessage("label.msa_service_is_unknown", new String[]
- { sh.serviceType }), MessageManager
+ .formatMessage("label.msa_service_is_unknown",
+ new String[] { sh.serviceType }), MessageManager
.getString("label.internal_jalview_error"),
JOptionPane.WARNING_MESSAGE);
startMsaWSClient(altitle, msa, submitGaps, preserveOrder, seqdataset);
-
}
public MsaWSClient()
System.out.println("A".matches("(-*[a-zA-Z]-*){1}[a-zA-Z-]*"));
}
-
-
protected String getServiceActionKey()
{
return "MsaWS";
{
action = "Realign ";
msawsmenu = new JMenu(MessageManager.formatMessage(
- "label.realign_with_params", new String[]
- { svcname }));
+ "label.realign_with_params", new String[] { svcname }));
msawsmenu.setToolTipText(MessageManager
.getString("label.align_sequences_to_existing_alignment"));
rmsawsmenu.add(msawsmenu);
final boolean withGaps = submitGaps;
JMenuItem method = new JMenuItem(MessageManager.formatMessage(
- "label.calcname_with_default_settings", new String[]
- { calcName }));
- method.setToolTipText(MessageManager.formatMessage(
- "label.action_with_default_settings", new String[]
- { action }));
+ "label.calcname_with_default_settings",
+ new String[] { calcName }));
+ method.setToolTipText(MessageManager
+ .formatMessage("label.action_with_default_settings",
+ new String[] { action }));
method.addActionListener(new ActionListener()
{
if (msa != null)
{
- new MsaWSClient(service, alignFrame.getTitle(), msa, withGaps,
- true, alignFrame.getViewport().getAlignment()
- .getDataset(), alignFrame);
+ new MsaWSClient(service, alignFrame.getTitle(), msa, withGaps,
+ true, alignFrame.getViewport().getAlignment()
+ .getDataset(), alignFrame);
}
}
if (msa != null)
{
new MsaWSClient(service, null, null, true, alignFrame
- .getTitle(), msa, withGaps, true, alignFrame
- .getViewport().getAlignment().getDataset(), alignFrame);
+ .getTitle(), msa, withGaps, true, alignFrame
+ .getViewport().getAlignment().getDataset(),
+ alignFrame);
}
}
List<WsParamSetI> presets = service.getParamStore().getPresets();
if (presets != null && presets.size() > 0)
{
- JMenu presetlist = new JMenu(MessageManager.formatMessage(
- "label.run_with_preset_params", new String[]
- { calcName }));
+ JMenu presetlist = new JMenu(
+ MessageManager.formatMessage(
+ "label.run_with_preset_params",
+ new String[] { calcName }));
final int showToolTipFor = ToolTipManager.sharedInstance()
.getDismissDelay();
@Override
public void mouseExited(MouseEvent e)
{
- ToolTipManager.sharedInstance().setDismissDelay(showToolTipFor);
+ ToolTipManager.sharedInstance().setDismissDelay(
+ showToolTipFor);
}
});
if (msa != null)
{
MsaWSClient msac = new MsaWSClient(service, preset,
- alignFrame.getTitle(),
- msa, false, true, alignFrame.getViewport()
- .getAlignment().getDataset(), alignFrame);
+ alignFrame.getTitle(), msa, false, true,
+ alignFrame.getViewport().getAlignment()
+ .getDataset(), alignFrame);
}
}