X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fswingjs%2Fapi%2FInterface.js;fp=site%2Fj2s%2Fswingjs%2Fapi%2FInterface.js;h=2356f48c7c57164a41ccca907dca254b06e73e0a;hp=e5c06437a52adfd9d7fa56f144c1a7cf3ee19fe8;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/swingjs/api/Interface.js b/site/j2s/swingjs/api/Interface.js index e5c0643..2356f48 100644 --- a/site/j2s/swingjs/api/Interface.js +++ b/site/j2s/swingjs/api/Interface.js @@ -1,21 +1,21 @@ -Clazz.declarePackage ("swingjs.api"); -c$ = Clazz.declareType (swingjs.api, "Interface"); -c$.getInstance = Clazz.defineMethod (c$, "getInstance", -function (name, isQuiet) { -try { -{ -Clazz._isQuiet = isQuiet; -}System.out.println ("swingjs.api.Interface creating instance of " + name); -var x = Clazz._4Name (name); -{ -Clazz._isQuiet = false; -}return (x == null ? null : x.newInstance ()); -} catch (e) { -if (Clazz.exceptionOf (e, Exception)) { -System.out.println ("Interface.java Error creating instance for " + name + ": \n" + e); -return null; -} else { -throw e; -} -} -}, "~S,~B"); +Clazz.declarePackage ("swingjs.api"); +c$ = Clazz.declareType (swingjs.api, "Interface"); +c$.getInstance = Clazz.defineMethod (c$, "getInstance", +function (name, isQuiet) { +try { +{ +Clazz._isQuiet = isQuiet; +}System.out.println ("swingjs.api.Interface creating instance of " + name); +var x = Clazz._4Name (name); +{ +Clazz._isQuiet = false; +}return (x == null ? null : x.newInstance ()); +} catch (e) { +if (Clazz.exceptionOf (e, Exception)) { +System.out.println ("Interface.java Error creating instance for " + name + ": \n" + e); +return null; +} else { +throw e; +} +} +}, "~S,~B");