JAL-3032 FileLoader fixes for SwingJS
authorhansonr <hansonr@stolaf.edu>
Wed, 20 Jun 2018 12:01:23 +0000 (13:01 +0100)
committerhansonr <hansonr@stolaf.edu>
Wed, 20 Jun 2018 12:01:23 +0000 (13:01 +0100)
SwingJS-site.zip for java.util.concurrent.locks.*

swingjs/j2s/java/awt/KeyboardFocusManager.js
was not found. (in JInternalFrame)

src/jalview/io/FileLoader.java

index f26d6da..60db4c8 100755 (executable)
@@ -183,8 +183,16 @@ public class FileLoader implements Runnable
    */
   protected AlignFrame _LoadFileWaitTillLoaded()
   {
-    Thread loader = new Thread(this);
-    loader.start();
+
+    /**
+     * @j2sNative
+     * 
+     *            this.run();
+     * 
+     */
+    {
+      Thread loader = new Thread(this);
+      loader.start();
 
     while (loader.isAlive())
     {
@@ -195,7 +203,7 @@ public class FileLoader implements Runnable
       {
       }
     }
-
+    }
     return alignFrame;
   }