Jmol/SwingJS update. Includes new transpiler and runtime
[jalview.git] / srcjar / javajs / util / JSThread.java
index be94c00..56a500e 100644 (file)
@@ -22,7 +22,7 @@ import javajs.api.JSFunction;
  * 
  */
 //@J2SRequireImport(swingjs.JSToolkit.class)
-public abstract class JSThread extends Thread implements JSFunction {
+public abstract class JSThread extends Thread {
 
        public static final int INIT = 0;
        public static final int LOOP = 1;
@@ -30,7 +30,7 @@ public abstract class JSThread extends Thread implements JSFunction {
        
        public static int threadCount = 0;
 
-       protected boolean isJS;
+       protected boolean isJS = /** @j2sNative true || */false;
        
        public JSThread() {
                this(null, "JSThread-" + (++threadCount));
@@ -42,13 +42,7 @@ public abstract class JSThread extends Thread implements JSFunction {
        
        public JSThread(ThreadGroup group, String name) {
                super(group, name);
-               /**
-                * @j2sNative
-                * 
-                * this.isJS = true;
-                */
-               {}
-       }
+               }
 
        @Override
        public void run() {
@@ -201,7 +195,7 @@ public abstract class JSThread extends Thread implements JSFunction {
                 * 
                 *            setTimeout(
                 *              function() {
-                *              java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent$java_awt_AWTEvent(
+                *              java.awt.Toolkit.getDefaultToolkit$().getSystemEventQueue$().postEvent$java_awt_AWTEvent(
                 *              Clazz.new_(java.awt.event.InvocationEvent.c$$O$Runnable,[me, r]))}, 
                 *              delay);
                 *