X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fswingjs%2FJSThread.js;h=92f41fb201cf5569cc94b0c4a39ea92b3253c622;hp=5c12398c47322bd347b8e15c7419507fcc4d61e3;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/swingjs/JSThread.js b/bin/swingjs/JSThread.js index 5c12398..92f41fb 100644 --- a/bin/swingjs/JSThread.js +++ b/bin/swingjs/JSThread.js @@ -1,49 +1,49 @@ -Clazz.declarePackage ("swingjs"); -Clazz.load (["java.lang.Thread", "swingjs.api.JSFunction"], "swingjs.JSThread", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.isJS = false; -Clazz.instantialize (this, arguments); -}, swingjs, "JSThread", Thread, swingjs.api.JSFunction); -Clazz.makeConstructor (c$, -function (group, name) { -Clazz.superConstructor (this, swingjs.JSThread, [group, name]); -{ -this.isJS = true; -}}, "ThreadGroup,~S"); -Clazz.overrideMethod (c$, "run", -function () { -this.run1 (0); -}); -Clazz.defineMethod (c$, "start", -function () { -{ -swingjs.JSToolkit.setTimeout(this, 1, 0); -}}); -Clazz.defineMethod (c$, "sleepAndReturn", -function (delay, state) { -if (!this.isJS) { -Thread.sleep (delay); -return false; -}var me = this; -var r = ((Clazz.isClassDefined ("swingjs.JSThread$1") ? 0 : swingjs.JSThread.$JSThread$1$ ()), Clazz.innerTypeInstance (swingjs.JSThread$1, this, Clazz.cloneFinals ("me", me, "state", state))); -{ -setTimeout( -function() {java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new java.awt.event.InvocationEvent(me, r))}, -delay -); -}return true; -}, "~N,~N"); -c$.$JSThread$1$ = function () { -Clazz.pu$h (); -c$ = Clazz.declareAnonymous (swingjs, "JSThread$1", null, Runnable); -Clazz.overrideMethod (c$, "run", -function () { -this.f$.me.run1 (this.f$.state); -}); -c$ = Clazz.p0p (); -}; -Clazz.defineStatics (c$, -"INIT", 0, -"LOOP", 1, -"DONE", 2); -}); +Clazz.declarePackage ("swingjs"); +Clazz.load (["java.lang.Thread", "swingjs.api.JSFunction"], "swingjs.JSThread", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.isJS = false; +Clazz.instantialize (this, arguments); +}, swingjs, "JSThread", Thread, swingjs.api.JSFunction); +Clazz.makeConstructor (c$, +function (group, name) { +Clazz.superConstructor (this, swingjs.JSThread, [group, name]); +{ +this.isJS = true; +}}, "ThreadGroup,~S"); +Clazz.overrideMethod (c$, "run", +function () { +this.run1 (0); +}); +Clazz.defineMethod (c$, "start", +function () { +{ +swingjs.JSToolkit.setTimeout(this, 1, 0); +}}); +Clazz.defineMethod (c$, "sleepAndReturn", +function (delay, state) { +if (!this.isJS) { +Thread.sleep (delay); +return false; +}var me = this; +var r = ((Clazz.isClassDefined ("swingjs.JSThread$1") ? 0 : swingjs.JSThread.$JSThread$1$ ()), Clazz.innerTypeInstance (swingjs.JSThread$1, this, Clazz.cloneFinals ("me", me, "state", state))); +{ +setTimeout( +function() {java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new java.awt.event.InvocationEvent(me, r))}, +delay +); +}return true; +}, "~N,~N"); +c$.$JSThread$1$ = function () { +Clazz.pu$h (); +c$ = Clazz.declareAnonymous (swingjs, "JSThread$1", null, Runnable); +Clazz.overrideMethod (c$, "run", +function () { +this.f$.me.run1 (this.f$.state); +}); +c$ = Clazz.p0p (); +}; +Clazz.defineStatics (c$, +"INIT", 0, +"LOOP", 1, +"DONE", 2); +});