JAL-3253 temporary branch SwingJS upgrade with testNG fixes Java 8
[jalview.git] / src / jalview / gui / StructureViewer.java
index dc5d77d..17b786d 100644 (file)
@@ -53,8 +53,7 @@ public class StructureViewer
 
   static
   {
-    Platform.loadStaticResource("core/core_jvjmol.z.js",
-            "org.jmol.viewer.Viewer");
+    Platform.ensureJmol();
   }
 
   private static final String UNKNOWN_VIEWER_TYPE = "Unknown structure viewer type ";
@@ -69,7 +68,7 @@ public class StructureViewer
   public enum ViewerType
   {
     JMOL, CHIMERA
-  };
+  }
 
   /**
    * Constructor