/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
*
}
}
}
+ long progress=-1;
// Finally, deal with the remaining input data.
if (file != null)
{
+ if (!headless)
+ {
+ desktop.setProgressBar("Processing commandline arguments...", progress=System.currentTimeMillis());
+ }
System.out.println("Opening file: " + file);
if (!file.startsWith("http://"))
}
}
}
- if (!headless)
- {
- desktop.setProgressBar("Processing commandline arguments...", Jalview.class.hashCode());
- }
protocol = jalview.io.AppletFormatAdapter.checkProtocol(file);
&& jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true))
{
file = jalview.bin.Cache.getDefault("STARTUP_FILE",
- jalview.bin.Cache.getDefault("www.jalview.org", "http://www.jalview.org")+"/examples/exampleFile_2_3.jar");
-
+ jalview.bin.Cache.getDefault("www.jalview.org", "http://www.jalview.org")+"/examples/exampleFile_2_7.jar");
+ if (file.equals("http://www.jalview.org/examples/exampleFile_2_3.jar"))
+ {
+ // hardwire upgrade of the startup file
+ file.replace("_2_3.jar","_2_7.jar");
+ // and remove the stale setting
+ jalview.bin.Cache.removeProperty("STARTUP_FILE");
+ }
+
protocol = "File";
if (file.indexOf("http:") > -1)
// and finally, turn off batch mode indicator - if the desktop still exists
if (desktop != null)
{
- desktop.setProgressBar(null, Jalview.class.hashCode());
+ if (progress!=-1) {
+ desktop.setProgressBar(null, progress);
+ }
desktop.setInBatchMode(false);
}
}