X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FJalview.java;h=b6d6d3f090de5810e2fb587f54a689b7fd5db6ba;hb=7ab5d6b0ba5fec1ea4a4239e79c476d841622485;hp=b0e93332a8495f96eab652a2185b3132d9a53d94;hpb=1889827c44c51f6353fe8619e5d44b421158af23;p=jalview.git diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index b0e9333..b6d6d3f 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -73,11 +73,11 @@ public class Jalview } }); } + /** * Put protein=true for get a protein example */ - private static boolean protein=false; - + private static boolean protein = false; /** * main class for Jalview application @@ -140,10 +140,11 @@ public class Jalview + "\n~Read documentation in Application or visit http://www.jalview.org for description of Features and Annotations file~\n\n"); System.exit(0); } - if (aparser.contains("nodisplay") || aparser.contains("nogui") || aparser.contains("headless")) + if (aparser.contains("nodisplay") || aparser.contains("nogui") + || aparser.contains("headless")) { System.setProperty("java.awt.headless", "true"); - headless=true; + headless = true; } Cache.loadProperties(aparser.getValue("props")); // must do this before // anything else! @@ -169,7 +170,8 @@ public class Jalview { headless = true; } - System.setProperty("http.agent", "Jalview Desktop/"+Cache.getDefault("VERSION", "Unknown")); + System.setProperty("http.agent", + "Jalview Desktop/" + Cache.getDefault("VERSION", "Unknown")); try { Cache.initLogger(); @@ -528,15 +530,10 @@ public class Jalview // We'll only open the default file if the desktop is visible. // And the user // //////////////////// - - - - - - if (!headless && file == null && vamsasImport == null - && jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true) && protein == true) + && jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true) + && protein == true) { file = jalview.bin.Cache.getDefault( "STARTUP_FILE", @@ -609,8 +606,7 @@ public class Jalview desktop.setInBatchMode(false); } } - - + private static void startUsageStats(final Desktop desktop) { /** @@ -923,18 +919,21 @@ public class Jalview * */ -class rnabuttonlistener implements ActionListener{ - public void actionPerformed(ActionEvent arg0) { - System.out.println("Good idea ! "); +class rnabuttonlistener implements ActionListener +{ + public void actionPerformed(ActionEvent arg0) + { + System.out.println("Good idea ! "); - } + } } -class pbuttonlistener implements ActionListener{ - public void actionPerformed(ActionEvent arg0) { - - - } +class pbuttonlistener implements ActionListener +{ + public void actionPerformed(ActionEvent arg0) + { + + } } class ArgsParser @@ -1075,7 +1074,5 @@ class FeatureFetcher { return queued == 0 && running == 0; } - - - + };