*/
package jalview.ws.jws2;
+import java.util.Locale;
+
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
wsInfo.setProgressText(((submitGaps) ? "Re-alignment" : "Alignment")
+ " of " + altitle + "\nJob details\n");
- String jobtitle = WebServiceName.toLowerCase();
+ String jobtitle = WebServiceName.toLowerCase(Locale.ROOT);
if (jobtitle.endsWith("alignment"))
{
if (submitGaps && (!jobtitle.endsWith("realignment")
if (msa != null)
{
- new MsaWSClient(service, af.getTitle(), msa, withGaps,
- true,
- af.getViewport().getAlignment().getDataset(),
- af);
+ new MsaWSClient(service, af.getTitle(), msa, withGaps, true,
+ af.getViewport().getAlignment().getDataset(), af);
}
}
@Override
public void actionPerformed(ActionEvent e)
{
- AlignmentView msa = af
- .gatherSequencesForAlignment();
+ AlignmentView msa = af.gatherSequencesForAlignment();
if (msa != null)
{
MsaWSClient msac = new MsaWSClient(service, preSet,
af.getTitle(), msa, false, true,
- af.getViewport().getAlignment()
- .getDataset(),
- af);
+ af.getViewport().getAlignment().getDataset(), af);
}
}
protected void startJob(final Jws2Instance service, final AlignFrame af,
final boolean withGaps, AlignmentView msa)
{
- try {
- new MsaWSClient(service, null, null, true,
- af.getTitle(), msa, withGaps, true,
- af.getViewport().getAlignment().getDataset(),
- af);
- } catch (Exception e) {
+ try
+ {
+ new MsaWSClient(service, null, null, true, af.getTitle(), msa,
+ withGaps, true, af.getViewport().getAlignment().getDataset(),
+ af);
+ } catch (Exception e)
+ {
JvOptionPane.showMessageDialog(alignFrame, e.getMessage(),
MessageManager.getString("label.state_job_error"),
JvOptionPane.WARNING_MESSAGE);