From: jprocter Date: Tue, 18 Jan 2011 10:42:20 +0000 (+0000) Subject: removed securityException caused by accessing class directly from sun. package X-Git-Tag: Release_2_7~290 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=06193991d7a4717f15e495ea7bfaa2e7f5d01bde;p=jalview.git removed securityException caused by accessing class directly from sun. package --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index dd2bf70..0fb0662 100755 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -842,13 +842,16 @@ public class JalviewLite extends Applet // remove any handlers that might be hanging around from an earlier instance try { - if (getAppletContext() instanceof sun.plugin.javascript.JSContext) { - if (debug) - { - System.err.println("Applet context implements JSContext - should have callback support!"); - } + if (debug) + { + System.err.println("Applet context is '"+getAppletContext().getClass().toString()+"'"); + } + JSObject scriptObject = JSObject.getWindow(this); + if (debug && scriptObject!=null) + { + System.err.println("Applet has Javascript callback support."); } - JSObject scriptObject = JSObject.getWindow(this); + } catch (Exception ex) { System.err