From: gmungoc Date: Tue, 19 Nov 2019 15:35:05 +0000 (+0000) Subject: JAL-3210 use JSUtil methods getFileBytes, getApplet X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~68^2~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d05c69943ac3cf2c049a7d0a96738fd9820ab37e;hp=47933804578c000492a8f6f84a45d7bc6000315b;p=jalview.git JAL-3210 use JSUtil methods getFileBytes, getApplet --- diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index e9afb70..ef509df 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -337,7 +337,7 @@ public class Platform public static byte[] getFileBytes(File f) { - return /** @j2sNative f && swingjs.JSUtil.getFileBytes$O(f) || */ + return /** @j2sNative f && swingjs.JSUtil.getFileBytes$java_io_File(f) || */ null; } @@ -430,10 +430,8 @@ public class Platform public static String getUniqueAppletID() { - @SuppressWarnings("unused") - ThreadGroup g = Thread.currentThread().getThreadGroup(); /** - * @j2sNative return g.getHtmlApplet$()._uniqueId; + * @j2sNative return swingjs.JSUtil.getApplet$()._uniqueId; * */ return null; @@ -454,13 +452,11 @@ public class Platform { return; } - @SuppressWarnings("unused") - ThreadGroup g = Thread.currentThread().getThreadGroup(); String id = getUniqueAppletID(); String key = "", value = ""; /** - * @j2sNative var info = g.getHtmlApplet$().__Info || {}; for (var key in - * info) { if (key.indexOf(prefix) == 0) { value = "" + + * @j2sNative var info = swingjs.JSUtil.getApplet$().__Info || {}; for (var + * key in info) { if (key.indexOf(prefix) == 0) { value = "" + * info[key]; */