JAL-3253 temporary branch SwingJS upgrade with testNG fixes Java 8
[jalview.git] / src / jalview / gui / StructureViewer.java
index 8f4f29c..17b786d 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,7 @@ 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.ensureJmol();
   }
 
   private static final String UNKNOWN_VIEWER_TYPE = "Unknown structure viewer type ";
@@ -75,7 +68,7 @@ public class StructureViewer
   public enum ViewerType
   {
     JMOL, CHIMERA
-  };
+  }
 
   /**
    * Constructor