JAL-3084 force EPS output to "Text" for JalviewJS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 20 Aug 2018 09:57:09 +0000 (10:57 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 20 Aug 2018 09:57:09 +0000 (10:57 +0100)
src/jalview/gui/Preferences.java
src/jalview/jbgui/GPreferences.java

index 6271ba9..92dde1f 100755 (executable)
@@ -551,8 +551,12 @@ public class Preferences extends GPreferences
     comboBox.addItem(promptEachTimeOpt);
     comboBox.addItem(lineArtOpt);
     comboBox.addItem(textOpt);
-    String defaultOption = Cache.getDefault(propertyKey,
-            "Prompt each time");
+    
+    /*
+     * JalviewJS doesn't support Lineart so force it to Text
+     */
+    String defaultOption = Jalview.isJS() ? "Text"
+            : Cache.getDefault(propertyKey, "Prompt each time");
     if (defaultOption.equalsIgnoreCase("Text"))
     {
       comboBox.setSelectedItem(textOpt);
index 351a030..9fc0398 100755 (executable)
@@ -516,12 +516,12 @@ public class GPreferences extends JPanel
     outputTab.add(modellerOutput);
     if (!Jalview.isJS())
     {
+      /*
+       * JalviewJS doesn't support Lineart option or SVG output
+       */
       outputTab.add(embbedBioJSON);
-    }
-    outputTab.add(epsLabel);
-    outputTab.add(epsRendering);
-    if (!Jalview.isJS())
-    {
+      outputTab.add(epsLabel);
+      outputTab.add(epsRendering);
       outputTab.add(htmlLabel);
       outputTab.add(htmlRendering);
       outputTab.add(svgLabel);