Merge branch 'Jalview-JS/JAL-3253-applet' of https://source.jalview.org/git/jalview...
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 15 May 2019 23:27:06 +0000 (18:27 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 15 May 2019 23:27:06 +0000 (18:27 -0500)
src/jalview/bin/JalviewAppLoader.java
src/jalview/util/Platform.java

index 5d60cf9..194d619 100644 (file)
@@ -343,7 +343,7 @@ public class JalviewAppLoader
       DataSourceType protocol = resolveFileProtocol(app,
               ret);
 
-      result = app.parseFeaturesFile(param, protocol);
+      result = app.parseFeaturesFile(ret[0], protocol);
     }
 
     param = app.getParameter("showFeatureSettings");
index 0c962f7..9b57a5a 100644 (file)
@@ -621,30 +621,40 @@ public class Platform
   {
     try
     {
-      return (isJS() ? new URL(/**
-                                * @j2sNative J2S.thisApplet._applet.appletViewer.appletDocumentBase
-                                *            ||
-                                */
-              "") : null);
+      if (isJS())
+      {
+        @SuppressWarnings("unused")
+        Object g = Thread.currentThread().getThreadGroup();
+        return new URL(/**
+                        * @j2sNative g.秘html5Applet._appletPanel.appletDocumentBase
+                        *            ||
+                        */
+                "");
+      }
     } catch (MalformedURLException e)
     {
-      return null;
     }
+    return null;
   }
 
   public static URL getCodeBase()
   {
     try
     {
-      return (isJS() ? new URL(/**
-                                * @j2sNative J2S.thisApplet._applet.appletViewer.appletCodeBase
-                                *            ||
-                                */
-              "") : null);
+      if (isJS())
+      {
+        @SuppressWarnings("unused")
+        Object g = Thread.currentThread().getThreadGroup();
+        return new URL(/**
+                        * @j2sNative g.秘html5Applet._appletPanel.appletCodeBase
+                        *            ||
+                        */
+                "");
+      }
     } catch (MalformedURLException e)
     {
-      return null;
     }
+    return null;
   }
 
 }