git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4793380
)
JAL-3210 use JSUtil methods getFileBytes, getApplet
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 19 Nov 2019 15:35:05 +0000
(15:35 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 19 Nov 2019 15:35:05 +0000
(15:35 +0000)
src/jalview/util/Platform.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/Platform.java
b/src/jalview/util/Platform.java
index
e9afb70
..
ef509df
100644
(file)
--- 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)
{
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;
}
null;
}
@@
-430,10
+430,8
@@
public class Platform
public static String getUniqueAppletID()
{
public static String getUniqueAppletID()
{
- @SuppressWarnings("unused")
- ThreadGroup g = Thread.currentThread().getThreadGroup();
/**
/**
- * @j2sNative return g.getHtmlApplet$()._uniqueId;
+ * @j2sNative return swingjs.JSUtil.getApplet$()._uniqueId;
*
*/
return null;
*
*/
return null;
@@
-454,13
+452,11
@@
public class Platform
{
return;
}
{
return;
}
- @SuppressWarnings("unused")
- ThreadGroup g = Thread.currentThread().getThreadGroup();
String id = getUniqueAppletID();
String key = "", value = "";
/**
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];
*/
* info[key];
*/