From da5decd141e510a3a5ffb0b0e315c61c1ceb39a4 Mon Sep 17 00:00:00 2001 From: hansonr Date: Tue, 30 Oct 2018 07:18:38 -0500 Subject: [PATCH] JAL-3026-JAL-3063 adds binary ext to J2S J2S needs to know any binary extensions for its file saving mechanism. --- src/jalview/project/Jalview2XML.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index e546789..42328b8 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -186,6 +186,27 @@ import javax.xml.stream.XMLStreamReader; */ public class Jalview2XML { + + // BH 2018 we add the .jvp binary extension to J2S so that + // it will declare that binary when we do the file save from the browser + + private static void addJ2SBinaryType(String ext) + { + ext = "." + ext + "?"; + + /** + * @j2sNative + * + * J2S._binaryTypes.push(ext); + * + */ + } + + static + { + addJ2SBinaryType(".jvp?"); + } + private static final String VIEWER_PREFIX = "viewer_"; private static final String RNA_PREFIX = "rna_"; -- 1.7.10.2