X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fjws1%2FSeqSearchWSThread.java;fp=src%2Fjalview%2Fws%2Fjws1%2FSeqSearchWSThread.java;h=b2e9b350a798dd328a7689a5f48f90b27b1a2de5;hb=eccba41980e4a52d4b009101049ae7518053362e;hp=a28494cb7a26ce92f667c5d4ca02e4a0389a6dd0;hpb=bd2e76b5eb4a16994d6ebc6344900184e590d552;p=jalview.git diff --git a/src/jalview/ws/jws1/SeqSearchWSThread.java b/src/jalview/ws/jws1/SeqSearchWSThread.java index a28494c..b2e9b35 100644 --- a/src/jalview/ws/jws1/SeqSearchWSThread.java +++ b/src/jalview/ws/jws1/SeqSearchWSThread.java @@ -152,6 +152,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI * * @return true if getAlignment will return a valid alignment result. */ + @Override public boolean hasResults() { if (subjobComplete @@ -170,7 +171,8 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI * * @return null or { Alignment(+features and annotation), NewickFile)} */ - public Object[] getAlignment(Alignment dataset, Map featureColours) + public Object[] getAlignment(Alignment dataset, + Map featureColours) { if (result != null && result.isFinished()) @@ -287,6 +289,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI * * @return boolean true if job can be submitted. */ + @Override public boolean hasValidInput() { if (seqs.getSeqs() != null) @@ -373,11 +376,13 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI } } + @Override public boolean isCancellable() { return true; } + @Override public void cancelJob() { if (!jobComplete && jobs != null) @@ -444,12 +449,14 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI } } + @Override public void pollJob(AWsJob job) throws Exception { ((SeqSearchWSJob) job).result = server.getResult(((SeqSearchWSJob) job) .getJobId()); } + @Override public void StartJob(AWsJob job) { if (!(job instanceof SeqSearchWSJob)) @@ -536,6 +543,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI return msa; } + @Override public void parseResult() { int results = 0; // number of result sets received @@ -579,6 +587,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI wsInfo.showResultsNewFrame .addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(java.awt.event.ActionEvent evt) { displayResults(true); @@ -587,6 +596,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI wsInfo.mergeResults .addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(java.awt.event.ActionEvent evt) { displayResults(false); @@ -612,7 +622,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI // NewickFile nf[] = new NewickFile[jobs.length]; for (int j = 0; j < jobs.length; j++) { - Map featureColours = new HashMap(); + Map featureColours = new HashMap(); Alignment al = null; NewickFile nf = null; if (jobs[j].hasResults()) @@ -664,6 +674,7 @@ class SeqSearchWSThread extends JWS1Thread implements WSClientI } } + @Override public boolean canMergeResults() { return false;