}
}
}
+ 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);
// 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);
}
}