From: BobHanson Date: Mon, 1 Jun 2020 21:14:33 +0000 (-0500) Subject: JAL-3262 from JAL3253-applet core_jvjmol.z.js static load X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=acf456a55b966a7e52350120e29ebd76e13499ca;p=jalview.git JAL-3262 from JAL3253-applet core_jvjmol.z.js static load --- diff --git a/src/jalview/gui/StructureViewer.java b/src/jalview/gui/StructureViewer.java index 0c8354b..c62f72f 100644 --- a/src/jalview/gui/StructureViewer.java +++ b/src/jalview/gui/StructureViewer.java @@ -26,6 +26,7 @@ import jalview.datamodel.PDBEntry; import jalview.datamodel.SequenceI; import jalview.datamodel.StructureViewerModel; import jalview.structure.StructureSelectionManager; +import jalview.util.Platform; import java.awt.Rectangle; import java.util.ArrayList; @@ -45,6 +46,16 @@ import java.util.Map.Entry; */ public class StructureViewer { + + static + { + Platform.loadStaticResource("core/core_jvjmol.z.js", + "org.jmol.viewer.Viewer"); + } + + + + private static final String UNKNOWN_VIEWER_TYPE = "Unknown structure viewer type "; StructureSelectionManager ssm;