From: hansonr Date: Tue, 30 Oct 2018 12:18:38 +0000 (-0500) Subject: JAL-3026-JAL-3063 adds binary ext to J2S X-Git-Tag: Release_2_11_4_0~45^2~18^2~439 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=da5decd141e510a3a5ffb0b0e315c61c1ceb39a4;p=jalview.git JAL-3026-JAL-3063 adds binary ext to J2S J2S needs to know any binary extensions for its file saving mechanism. --- 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_";