JAL-2805 First try at loading tree through Forester by calling Aptx main
[jalview.git] / src / jalview / gui / StructureViewerBase.java
index c8854a7..aa07b7c 100644 (file)
@@ -310,6 +310,8 @@ public abstract class StructureViewerBase extends GStructureViewer
 
   public abstract ViewerType getViewerType();
 
+  protected abstract IProgressIndicator getIProgressIndicator();
+
   /**
    * add a new structure (with associated sequences and chains) to this viewer,
    * retrieving it if necessary first.
@@ -350,7 +352,7 @@ public abstract class StructureViewerBase extends GStructureViewer
             // and call ourselves again.
             addStructure(pdbentry, seqs, chains, align, alignFrame);
           }
-        }).start();
+        }, "Adding3DStructureQueueThread").start();
         return;
       }
     }
@@ -361,7 +363,7 @@ public abstract class StructureViewerBase extends GStructureViewer
     addingStructures = true;
     _started = false;
     alignAddedStructures = align;
-    worker = new Thread(this);
+    worker = new Thread(this, "Adding3DStructureThread");
     worker.start();
     return;
   }
@@ -460,7 +462,7 @@ public abstract class StructureViewerBase extends GStructureViewer
      * create the mappings
      */
     apanel.getStructureSelectionManager().setMapping(seq, chains,
-            pdbFilename, DataSourceType.FILE);
+            pdbFilename, DataSourceType.FILE, getIProgressIndicator());
 
     /*
      * alert the FeatureRenderer to show new (PDB RESNUM) features