}\r
private void _startFetching()\r
{\r
+ running=true;\r
new Thread(new FetchSeqFeatures()).start();\r
}\r
class FetchSeqFeatures implements Runnable\r
{\r
public void run()\r
{\r
+ running=true;\r
new DBRefFetcher(sequences, af).fetchDBRefs(true);\r
startFetching();\r
setGuiFetchComplete();\r
*/\r
void startFetching()\r
{\r
+ running=true;\r
cancelled = false;\r
startTime = System.currentTimeMillis();\r
if (af != null)\r
}\r
\r
int sourcesRemaining = 0;\r
-\r
+ private boolean running=false;\r
private void setGuiFetchComplete()\r
{\r
-\r
+ running=false;\r
if (!cancelled && af != null)\r
{\r
// only update the progress bar if we've completed the fetch normally\r
return type.getContent();\r
}\r
\r
+ public boolean isRunning()\r
+ {\r
+ return running;\r
+ }\r
+\r
}\r
{\r
jalview.ws.DasSequenceFeatureFetcher dssf=new jalview.ws.DasSequenceFeatureFetcher(sqs, null, srcs, false,\r
false, multiple);\r
+ while (dssf.isRunning())\r
+ {\r
+ try {\r
+ Thread.sleep(200);\r
+ } catch (InterruptedException x)\r
+ {\r
+ \r
+ }\r
+ }\r
+ \r
} catch (Exception x)\r
{\r
Cache.log\r