discoverer = new jalview.ws.Discoverer(); // Only gets started if gui is
// displayed.
+ // Thread off a new instance of the file chooser - this reduces the time it takes to open it later on.
+ new Thread(new Runnable() {
+ public void run() {
+ Cache.log.debug("Filechooser init thread started.");
+ JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache
+ .getProperty("LAST_DIRECTORY"),
+ jalview.io.AppletFormatAdapter.READABLE_EXTENSIONS,
+ jalview.io.AppletFormatAdapter.READABLE_FNAMES,
+ jalview.bin.Cache.getProperty("DEFAULT_FILE_FORMAT"));
+ Cache.log.debug("Filechooser init thread finished.");
+ }
+ }).start();
}
/**