X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FJalview.java;h=c3d674bece0627a168ffef0c2e3493236e2a47a6;hb=cafb901eee70c3737c3f4a44083108d01ee78fa8;hp=5e4569a1383673230ef0bc2ff662657e3223f79b;hpb=ad20cd92225f2ee8c251d39b00b90555d382a616;p=jalview.git diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 5e4569a..c3d674b 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -17,6 +17,10 @@ */ package jalview.bin; +import java.awt.FlowLayout; +import java.awt.Frame; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; @@ -66,6 +70,11 @@ public class Jalview } }); } + /** + * Put protein=true for get a protein example + */ + private static boolean protein=false; + /** * main class for Jalview application @@ -128,6 +137,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")) + { + System.setProperty("java.awt.headless", "true"); + headless=true; + } Cache.loadProperties(aparser.getValue("props")); // must do this before // anything else! String defs = aparser.getValue("setprop"); @@ -147,10 +161,6 @@ public class Jalview } defs = aparser.getValue("setprop"); } - if (aparser.contains("nodisplay")) - { - System.setProperty("java.awt.headless", "true"); - } if (System.getProperty("java.awt.headless") != null && System.getProperty("java.awt.headless").equals("true")) { @@ -515,8 +525,15 @@ 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)) + && jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true) && protein == true) { file = jalview.bin.Cache.getDefault( "STARTUP_FILE", @@ -589,7 +606,8 @@ public class Jalview desktop.setInBatchMode(false); } } - + + private static void startUsageStats(final Desktop desktop) { /** @@ -901,6 +919,21 @@ public class Jalview * @author Andrew Waterhouse and JBP documented. * */ + +class rnabuttonlistener implements ActionListener{ + public void actionPerformed(ActionEvent arg0) { + System.out.println("Good idea ! "); + + } +} + +class pbuttonlistener implements ActionListener{ + public void actionPerformed(ActionEvent arg0) { + + + } +} + class ArgsParser { Vector vargs = null; @@ -1039,4 +1072,7 @@ class FeatureFetcher { return queued == 0 && running == 0; } + + + };