}
});
}
+
/**
* Put protein=true for get a protein example
*/
- private static boolean protein=false;
-
+ private static boolean protein = false;
/**
* main class for Jalview application
+ "\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!
{
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();
// 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",
desktop.setInBatchMode(false);
}
}
-
-
+
private static void startUsageStats(final Desktop desktop)
{
/**
*
*/
-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
{
return queued == 0 && running == 0;
}
-
-
-
+
};