+ final IProgressIndicator guiWindow = guiIndic;
+ final SequenceFetcher us = this;
+ // launch initialiser thread
+ Thread sf = new Thread(new Runnable() {
+
+ public void run()
+ {
+ if (sfetch==null)
+ {
+ /**
+ * give a visual indication that sequence fetcher construction is occuring
+ */
+ if ( guiWindow!=null )
+ {
+ guiWindow.setProgressBar("Initialising Sequence Database Fetchers", this.hashCode());
+ }
+ ASequenceFetcher sf = new jalview.ws.SequenceFetcher();
+ if ( guiWindow!=null )
+ {
+ guiWindow.setProgressBar("Initialising Sequence Database Fetchers", this.hashCode());
+ }
+ sfetch = sf;
+
+ }
+ us.initGui(guiWindow);
+ }
+ });
+ sf.start();
+ }
+ /**
+ * called by thread spawned by constructor
+ * @param guiWindow
+ */
+ private void initGui(IProgressIndicator guiWindow) {
+ this.guiWindow = guiWindow;
+ if (guiWindow instanceof AlignFrame)
+ {
+ alignFrame = (AlignFrame) guiWindow;
+ }
+