JAL-845 implement alignment of protein to match cDNA alignment
[jalview.git] / src / jalview / ws / AWSThread.java
index 1c9931d..3359546 100644 (file)
@@ -90,7 +90,10 @@ public abstract class AWSThread extends Thread
    */
   protected String WsUrl = null;
 
-  private boolean fromSplitFrame;
+  /*
+   * The AlignFrame from which the service was requested.
+   */
+  private AlignFrame alignFrame;
 
   /**
    * generic web service job/subjob poll loop
@@ -365,8 +368,7 @@ public abstract class AWSThread extends Thread
           AlignmentView alview, String wsurl2)
   {
     super();
-    // this.alignFrame = alframe;
-    this.fromSplitFrame = alframe.getSplitViewContainer() != null;
+    this.alignFrame = alframe;
     currentView = alframe.getCurrentView().getAlignment();
     featureSettings = alframe.getFeatureRenderer().getSettings();
     defGapChar = alframe.getViewport().getGapCharacter();
@@ -385,8 +387,8 @@ public abstract class AWSThread extends Thread
     }
   }
 
-  protected boolean isFromSplitFrame()
+  protected AlignFrame getRequestingAlignFrame()
   {
-    return this.fromSplitFrame;
+    return this.alignFrame;
   }
 }