hack for fastpaint Java bug upshifting one line after a sequence
[jalview.git] / src / jalview / gui / Desktop.java
index 7d54255..cd8330a 100644 (file)
@@ -406,12 +406,11 @@ public class Desktop extends jalview.jbgui.GDesktop
       setBounds(xPos, yPos, 900, 650);
     }
 
-    // boolean doFullLoad = /** @j2sNative ! */true;
     if (!Platform.isJS())
     /**
      * Java only
      * 
-     * @j2sNative
+     * @j2sIgnore
      */
     {
 
@@ -890,7 +889,7 @@ public class Desktop extends jalview.jbgui.GDesktop
     frame.setResizable(resizable);
     frame.setMaximizable(resizable);
     frame.setIconifiable(resizable);
-    frame.setOpaque(Platform.isJS());/// ** @j2sNative true || */false);
+    frame.setOpaque(Platform.isJS());
 
     if (frame.getX() < 1 && frame.getY() < 1)
     {
@@ -1097,7 +1096,10 @@ public class Desktop extends jalview.jbgui.GDesktop
           {
             format = new IdentifyFile().identify(file, protocol);
           }
-
+          if (file instanceof File)
+          {
+            Platform.cacheFileData((File) file);
+          }
           new FileLoader().LoadFile(null, file, protocol, format);
 
         }
@@ -1193,7 +1195,7 @@ public class Desktop extends jalview.jbgui.GDesktop
     /**
      * Java only
      * 
-     * @j2sNative
+     * @j2sIgnore
      */
     {
       JComboBox<String> asCombo = new JComboBox<>();
@@ -1456,7 +1458,7 @@ public class Desktop extends jalview.jbgui.GDesktop
       /**
        * Java only
        * 
-       * @j2sNative
+       * @j2sIgnore
        */
       {
         Help.showHelpWindow();