Merge branch 'Jalview-BH/JAL-3026-JAL-3063-JAXB' of https://source.jalview.org/git...
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sat, 22 Dec 2018 18:49:52 +0000 (12:49 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sat, 22 Dec 2018 18:49:52 +0000 (12:49 -0600)
src/jalview/io/JalviewFileChooser.java

index c275ef0..56b8637 100755 (executable)
@@ -22,6 +22,7 @@
 package jalview.io;
 
 import jalview.bin.Cache;
+import jalview.bin.Jalview;
 import jalview.gui.JvOptionPane;
 import jalview.util.MessageManager;
 import jalview.util.Platform;
@@ -193,15 +194,13 @@ public class JalviewFileChooser extends JFileChooser implements DialogRunnerI,
   {
     int value = super.showOpenDialog(this);
     
-    /*
-     * code below here is not reached in JalviewJS, instead
-     * propertyChange() is called for dialog action
-     */
-    /**
-     * @j2sNative
-     */
+    if (!Jalview.isJS())
     {
-    handleResponse(value);
+      /*
+       * code here is not run in JalviewJS, instead
+       * propertyChange() is called for dialog action
+       */
+      handleResponse(value);
     }
     return value;
   }