JAL-1740 implemented auto-update of BioJsMSA, introduced FTP client for downloading...
[jalview.git] / src / jalview / bin / Jalview.java
index 0fe1664..e184db7 100755 (executable)
  */
 package jalview.bin;
 
+import jalview.gui.AlignFrame;
+import jalview.gui.Desktop;
+import jalview.io.BioJsHTMLOutput;
+import jalview.io.HtmlSvgOutput;
+import jalview.util.MessageManager;
+import jalview.util.Platform;
+import jalview.ws.jws2.Jws2Discoverer;
+
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.io.BufferedReader;
@@ -45,13 +53,6 @@ import java.util.Vector;
 import javax.swing.UIManager;
 import javax.swing.UnsupportedLookAndFeelException;
 
-import jalview.gui.AlignFrame;
-import jalview.gui.Desktop;
-import jalview.io.HtmlSvgOutput;
-import jalview.util.MessageManager;
-import jalview.util.Platform;
-import jalview.ws.jws2.Jws2Discoverer;
-
 /**
  * Main class for Jalview Application <br>
  * <br>
@@ -93,23 +94,6 @@ public class Jalview
     System.out.println(System.getProperty("os.arch") + " "
             + System.getProperty("os.name") + " "
             + System.getProperty("os.version"));
-    // if (new Platform().isAMac())
-    // {
-    // // System.setProperty("com.apple.mrj.application.apple.menu.about.name",
-    // // "Jalview");
-    // // System.setProperty("apple.laf.useScreenMenuBar", "true");
-    // try
-    // {
-    // UIManager.setLookAndFeel(ch.randelshofer.quaqua.QuaquaManager
-    // .getLookAndFeel());
-    // System.out
-    // .println("--------------------------------------------> in here");
-    // } catch (UnsupportedLookAndFeelException e)
-    // {
-    // // TODO Auto-generated catch block
-    // e.printStackTrace();
-    // }
-    // }
 
     ArgsParser aparser = new ArgsParser(args);
     boolean headless = false;
@@ -241,6 +225,9 @@ public class Jalview
       desktop.checkForNews();
     }
 
+    BioJsHTMLOutput bjs = new BioJsHTMLOutput(null, null);
+    bjs.updateBioJS();
+
     String file = null, protocol = null, format = null, data = null;
     jalview.io.FileLoader fileLoader = new jalview.io.FileLoader();
     Vector getFeatures = null; // vector of das source nicknames to fetch