JAL-3878 Separate gui elements from operations.
[jalview.git] / src / jalview / ws2 / operations / AnnotationServiceWorker.java
index 034b581..97b4199 100644 (file)
@@ -68,12 +68,13 @@ public class AnnotationServiceWorker implements PollableAlignCalcWorkerI
   private int exceptionCount = MAX_RETRY;
   private static final int MAX_RETRY = 5;
 
-  AnnotationServiceWorker(AnnotationOperation operation, WebServiceI service,
+  public AnnotationServiceWorker(AnnotationOperation operation,
       List<ArgumentI> args, AlignViewport viewport, AlignmentViewPanel alignPanel,
-      IProgressIndicator progressIndicator, AlignFrame frame, AlignCalcManagerI2 calcMan)
+      IProgressIndicator progressIndicator, AlignFrame frame, 
+      AlignCalcManagerI2 calcMan)
   {
     this.operation = operation;
-    this.service = service;
+    this.service = operation.service;
     this.args = args;
     this.viewport = viewport;
     this.alignPanel = alignPanel;