JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / gui / StructureViewer.java
index 8f4f29c..dc5d77d 100644 (file)
@@ -28,6 +28,7 @@ import jalview.datamodel.StructureViewerModel;
 import jalview.structure.StructureMapping;
 import jalview.structure.StructureSelectionManager;
 import jalview.util.MessageManager;
+import jalview.util.Platform;
 import jalview.ws.DBRefFetcher;
 import jalview.ws.sifts.SiftsSettings;
 
@@ -52,15 +53,8 @@ public class StructureViewer
 
   static
   {
-    /**
-     * This is the entry class. Load the core file directly, if it exists. See
-     * buildcore.xml.
-     * 
-     * 
-     * @j2sNative
-     * 
-     *            swingjs.JSUtil.loadStaticResource$S("core/core_jvjmol.z.js");
-     */
+    Platform.loadStaticResource("core/core_jvjmol.z.js",
+            "org.jmol.viewer.Viewer");
   }
 
   private static final String UNKNOWN_VIEWER_TYPE = "Unknown structure viewer type ";