X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fws%2Fjws2%2FAAConClient.java;h=a5cfe4a327d8fc4123dace1f795f1683f49f34e3;hb=a8f483d04205bb8273ee311c12968b7e86d205fa;hp=b6f67d92b6e7418c77ecc02cda63af1ee55dba96;hpb=59d682209891099d46b960509907c79e3fb276fe;p=jalview.git
diff --git a/src/jalview/ws/jws2/AAConClient.java b/src/jalview/ws/jws2/AAConClient.java
index b6f67d9..a5cfe4a 100644
--- a/src/jalview/ws/jws2/AAConClient.java
+++ b/src/jalview/ws/jws2/AAConClient.java
@@ -1,6 +1,6 @@
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
- * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
+ * Copyright (C) 2014 The Jalview Authors
*
* This file is part of Jalview.
*
@@ -14,16 +14,17 @@
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.ws.jws2;
import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
import jalview.gui.AlignFrame;
import jalview.gui.AlignmentPanel;
import jalview.ws.jws2.dm.AAConSettings;
import jalview.ws.jws2.jabaws2.Jws2Instance;
import jalview.ws.params.WsParamSetI;
+import jalview.ws.uimodel.AlignAnalysisUIText;
import java.util.ArrayList;
import java.util.List;
@@ -49,23 +50,6 @@ public class AAConClient extends JabawsAlignCalcWorker
initViewportParams();
}
- protected void initViewportParams()
- {
- ((jalview.gui.AlignViewport) alignViewport).setCalcIdSettingsFor(
- getCalcId(),
- new AAConSettings(true, service, this.preset,
- (arguments != null) ? JabaParamStore
- .getJwsArgsfromJaba(arguments) : null), true);
- }
-
- @Override
- public void updateParameters(WsParamSetI newpreset,
- java.util.List newarguments)
- {
- super.updateParameters(newpreset, newarguments);
- initViewportParams();
- };
-
public String getServiceActionText()
{
return "calculating Amino acid consensus using AACon service";
@@ -115,17 +99,21 @@ public class AAConClient extends JabawsAlignCalcWorker
}
}
+ @Override
public String getCalcId()
{
- return SequenceAnnotationWSClient.AAConCalcId;
+ return CALC_ID;
}
+ private static String CALC_ID="jabaws2.AACon";
- public static void removeAAConsAnnotation(AlignmentPanel alignPanel)
+ public static AlignAnalysisUIText getAlignAnalysisUITest()
{
- for (AlignmentAnnotation aa : alignPanel.getAlignment().findAnnotation(
- SequenceAnnotationWSClient.AAConCalcId))
- {
- alignPanel.getAlignment().deleteAnnotation(aa);
- }
+ return new AlignAnalysisUIText(
+ compbio.ws.client.Services.AAConWS.toString(),
+ jalview.ws.jws2.AAConClient.class, CALC_ID, false, true, true,
+ "AACon Calculations",
+ "When checked, AACon calculations are updated automatically.",
+ "Change AACon Settings...",
+ "Modify settings for AACon calculations.");
}
}