From acf456a55b966a7e52350120e29ebd76e13499ca Mon Sep 17 00:00:00 2001 From: BobHanson Date: Mon, 1 Jun 2020 16:14:33 -0500 Subject: [PATCH] JAL-3262 from JAL3253-applet core_jvjmol.z.js static load --- src/jalview/gui/StructureViewer.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- 1.7.10.2