JAL-3878 Use AlignViewport interface instead of concrete implementation in AlignmentW...
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 23 Dec 2021 16:48:10 +0000 (17:48 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 23 Dec 2021 16:48:10 +0000 (17:48 +0100)
src/jalview/ws2/operations/AlignmentWorker.java

index 79ef527..191574b 100644 (file)
@@ -14,6 +14,7 @@ import jalview.analysis.AlignSeq;
 import jalview.analysis.AlignmentSorter;
 import jalview.analysis.SeqsetUtils;
 import jalview.analysis.SeqsetUtils.SequenceInfo;
+import jalview.api.AlignViewportI;
 import jalview.bin.Cache;
 import jalview.datamodel.AlignedCodonFrame;
 import jalview.datamodel.Alignment;
@@ -39,7 +40,7 @@ public class AlignmentWorker extends AbstractPollableWorker
 
   private AlignmentI dataset;
 
-  private AlignViewport viewport;
+  private AlignViewportI viewport;
 
   private List<AlignedCodonFrame> codonFrame = new ArrayList<>();
 
@@ -133,7 +134,7 @@ public class AlignmentWorker extends AbstractPollableWorker
 
   public AlignmentWorker(AlignmentOperation operation,
       AlignmentView msa, List<ArgumentI> args,
-      boolean submitGaps, boolean preserveOrder, AlignViewport viewport)
+      boolean submitGaps, boolean preserveOrder, AlignViewportI viewport)
   {
     this.operation = operation;
     this.msa = msa;