X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fjws2%2FMsaWSClient.java;h=9caa803ede24509a0130c5be73c6c6904c634b34;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=8ed4a36ad37ea455bf3ba9de93602fd6ca7ef09d;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8;p=jalview.git diff --git a/src/jalview/ws/jws2/MsaWSClient.java b/src/jalview/ws/jws2/MsaWSClient.java index 8ed4a36..9caa803 100644 --- a/src/jalview/ws/jws2/MsaWSClient.java +++ b/src/jalview/ws/jws2/MsaWSClient.java @@ -269,10 +269,8 @@ public class MsaWSClient extends Jws2Client 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); } } @@ -345,16 +343,13 @@ public class MsaWSClient extends Jws2Client @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); } } @@ -380,12 +375,13 @@ public class MsaWSClient extends Jws2Client 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);