Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / jssun / awt / AWTAutoShutdown.js
index f598760..e5556ac 100644 (file)
@@ -1,92 +1,92 @@
-Clazz.declarePackage ("jssun.awt");\r
-Clazz.load (["java.util.HashSet", "$.IdentityHashMap"], "jssun.awt.AWTAutoShutdown", ["java.awt.AWTEvent"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.busyThreadSet = null;\r
-this.toolkitThreadBusy = false;\r
-this.peerMap = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.awt, "AWTAutoShutdown", null, Runnable);\r
-Clazz.prepareFields (c$, function () {\r
-this.busyThreadSet =  new java.util.HashSet (7);\r
-this.peerMap =  new java.util.IdentityHashMap ();\r
-});\r
-Clazz.makeConstructor (c$, \r
- function () {\r
-});\r
-c$.getInstance = Clazz.defineMethod (c$, "getInstance", \r
-function () {\r
-return (jssun.awt.AWTAutoShutdown.theInstance == null ? (jssun.awt.AWTAutoShutdown.theInstance =  new jssun.awt.AWTAutoShutdown ()) : jssun.awt.AWTAutoShutdown.theInstance);\r
-});\r
-c$.notifyToolkitThreadBusy = Clazz.defineMethod (c$, "notifyToolkitThreadBusy", \r
-function () {\r
-jssun.awt.AWTAutoShutdown.getInstance ().setToolkitBusy (true);\r
-});\r
-c$.notifyToolkitThreadFree = Clazz.defineMethod (c$, "notifyToolkitThreadFree", \r
-function () {\r
-jssun.awt.AWTAutoShutdown.getInstance ().setToolkitBusy (false);\r
-});\r
-Clazz.defineMethod (c$, "notifyThreadBusy", \r
-function (thread) {\r
-this.busyThreadSet.add (thread);\r
-}, "Thread");\r
-Clazz.defineMethod (c$, "notifyThreadFree", \r
-function (thread) {\r
-this.busyThreadSet.remove (thread);\r
-}, "Thread");\r
-Clazz.defineMethod (c$, "notifyPeerMapUpdated", \r
-function () {\r
-if (!this.isReadyToShutdown ()) {\r
-this.activateBlockerThread ();\r
-}});\r
-Clazz.defineMethod (c$, "isReadyToShutdown", \r
- function () {\r
-return (!this.toolkitThreadBusy && this.peerMap.isEmpty () && this.busyThreadSet.isEmpty ());\r
-});\r
-Clazz.defineMethod (c$, "setToolkitBusy", \r
- function (busy) {\r
-if (busy != this.toolkitThreadBusy) {\r
-if (busy != this.toolkitThreadBusy) {\r
-if (busy) {\r
-this.toolkitThreadBusy = busy;\r
-} else {\r
-this.toolkitThreadBusy = busy;\r
-}}}}, "~B");\r
-Clazz.overrideMethod (c$, "run", \r
-function () {\r
-});\r
-c$.getShutdownEvent = Clazz.defineMethod (c$, "getShutdownEvent", \r
-function () {\r
-return ((Clazz.isClassDefined ("jssun.awt.AWTAutoShutdown$1") ? 0 : jssun.awt.AWTAutoShutdown.$AWTAutoShutdown$1$ ()), Clazz.innerTypeInstance (jssun.awt.AWTAutoShutdown$1, this, null, jssun.awt.AWTAutoShutdown.getInstance (), 0));\r
-});\r
-Clazz.defineMethod (c$, "activateBlockerThread", \r
- function () {\r
-});\r
-Clazz.defineMethod (c$, "registerPeer", \r
-function (target, peer) {\r
-this.peerMap.put (target, peer);\r
-this.notifyPeerMapUpdated ();\r
-}, "~O,~O");\r
-Clazz.defineMethod (c$, "unregisterPeer", \r
-function (target, peer) {\r
-if (this.peerMap.get (target) === peer) {\r
-this.peerMap.remove (target);\r
-}}, "~O,~O");\r
-Clazz.defineMethod (c$, "getPeer", \r
-function (target) {\r
-return this.peerMap.get (target);\r
-}, "~O");\r
-Clazz.defineMethod (c$, "dumpPeers", \r
-function (aLog) {\r
-aLog.fine ("Mapped peers:");\r
-for (var key, $key = this.peerMap.keySet ().iterator (); $key.hasNext () && ((key = $key.next ()) || true);) {\r
-aLog.fine (key + "->" + this.peerMap.get (key));\r
-}\r
-}, "java.util.logging.Logger");\r
-c$.$AWTAutoShutdown$1$ = function () {\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.declareAnonymous (jssun.awt, "AWTAutoShutdown$1", java.awt.AWTEvent);\r
-c$ = Clazz.p0p ();\r
-};\r
-Clazz.defineStatics (c$,\r
-"theInstance", null);\r
-});\r
+Clazz.declarePackage ("jssun.awt");
+Clazz.load (["java.util.HashSet", "$.IdentityHashMap"], "jssun.awt.AWTAutoShutdown", ["java.awt.AWTEvent"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.busyThreadSet = null;
+this.toolkitThreadBusy = false;
+this.peerMap = null;
+Clazz.instantialize (this, arguments);
+}, jssun.awt, "AWTAutoShutdown", null, Runnable);
+Clazz.prepareFields (c$, function () {
+this.busyThreadSet =  new java.util.HashSet (7);
+this.peerMap =  new java.util.IdentityHashMap ();
+});
+Clazz.makeConstructor (c$, 
+ function () {
+});
+c$.getInstance = Clazz.defineMethod (c$, "getInstance", 
+function () {
+return (jssun.awt.AWTAutoShutdown.theInstance == null ? (jssun.awt.AWTAutoShutdown.theInstance =  new jssun.awt.AWTAutoShutdown ()) : jssun.awt.AWTAutoShutdown.theInstance);
+});
+c$.notifyToolkitThreadBusy = Clazz.defineMethod (c$, "notifyToolkitThreadBusy", 
+function () {
+jssun.awt.AWTAutoShutdown.getInstance ().setToolkitBusy (true);
+});
+c$.notifyToolkitThreadFree = Clazz.defineMethod (c$, "notifyToolkitThreadFree", 
+function () {
+jssun.awt.AWTAutoShutdown.getInstance ().setToolkitBusy (false);
+});
+Clazz.defineMethod (c$, "notifyThreadBusy", 
+function (thread) {
+this.busyThreadSet.add (thread);
+}, "Thread");
+Clazz.defineMethod (c$, "notifyThreadFree", 
+function (thread) {
+this.busyThreadSet.remove (thread);
+}, "Thread");
+Clazz.defineMethod (c$, "notifyPeerMapUpdated", 
+function () {
+if (!this.isReadyToShutdown ()) {
+this.activateBlockerThread ();
+}});
+Clazz.defineMethod (c$, "isReadyToShutdown", 
+ function () {
+return (!this.toolkitThreadBusy && this.peerMap.isEmpty () && this.busyThreadSet.isEmpty ());
+});
+Clazz.defineMethod (c$, "setToolkitBusy", 
+ function (busy) {
+if (busy != this.toolkitThreadBusy) {
+if (busy != this.toolkitThreadBusy) {
+if (busy) {
+this.toolkitThreadBusy = busy;
+} else {
+this.toolkitThreadBusy = busy;
+}}}}, "~B");
+Clazz.overrideMethod (c$, "run", 
+function () {
+});
+c$.getShutdownEvent = Clazz.defineMethod (c$, "getShutdownEvent", 
+function () {
+return ((Clazz.isClassDefined ("jssun.awt.AWTAutoShutdown$1") ? 0 : jssun.awt.AWTAutoShutdown.$AWTAutoShutdown$1$ ()), Clazz.innerTypeInstance (jssun.awt.AWTAutoShutdown$1, this, null, jssun.awt.AWTAutoShutdown.getInstance (), 0));
+});
+Clazz.defineMethod (c$, "activateBlockerThread", 
+ function () {
+});
+Clazz.defineMethod (c$, "registerPeer", 
+function (target, peer) {
+this.peerMap.put (target, peer);
+this.notifyPeerMapUpdated ();
+}, "~O,~O");
+Clazz.defineMethod (c$, "unregisterPeer", 
+function (target, peer) {
+if (this.peerMap.get (target) === peer) {
+this.peerMap.remove (target);
+}}, "~O,~O");
+Clazz.defineMethod (c$, "getPeer", 
+function (target) {
+return this.peerMap.get (target);
+}, "~O");
+Clazz.defineMethod (c$, "dumpPeers", 
+function (aLog) {
+aLog.fine ("Mapped peers:");
+for (var key, $key = this.peerMap.keySet ().iterator (); $key.hasNext () && ((key = $key.next ()) || true);) {
+aLog.fine (key + "->" + this.peerMap.get (key));
+}
+}, "java.util.logging.Logger");
+c$.$AWTAutoShutdown$1$ = function () {
+Clazz.pu$h(self.c$);
+c$ = Clazz.declareAnonymous (jssun.awt, "AWTAutoShutdown$1", java.awt.AWTEvent);
+c$ = Clazz.p0p ();
+};
+Clazz.defineStatics (c$,
+"theInstance", null);
+});