X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FWSWUBlastClient.java;h=99beb5f1946a534abe5391361300a54e6f37b86f;hb=72c7616e58df4e815723479de96b062ccd956c9e;hp=8e4532c836e0337318d85435c0ecba49a174a2cf;hpb=75cbd01f57e64f0b2946e8b54005dadf139546ee;p=jalview.git diff --git a/src/jalview/io/WSWUBlastClient.java b/src/jalview/io/WSWUBlastClient.java index 8e4532c..99beb5f 100755 --- a/src/jalview/io/WSWUBlastClient.java +++ b/src/jalview/io/WSWUBlastClient.java @@ -64,6 +64,7 @@ public class WSWUBlastClient for (int i = 0; i < ids.size(); i++) { SequenceI sequence = al.findName(ids.get(i).toString()); + System.out.println(ids.get(i).toString()); StringBuffer nonGapped = new StringBuffer(); @@ -126,7 +127,10 @@ public class WSWUBlastClient { maxFound = value; buffer.append(" " + id2 + " " + value + "%; "); - suggestedIds.put(id1, id2); + if(!suggestedIds.containsKey(id1)) + { + suggestedIds.put(id1, id2); + } } } } @@ -138,6 +142,8 @@ public class WSWUBlastClient void updateIds() { + // This must be outside the run() body as java 1.5 + // will not return any value from the OptionPane to the expired thread. int reply = JOptionPane.showConfirmDialog( Desktop.desktop, "Automatically update suggested ids?", "Auto replace sequence ids", JOptionPane.YES_NO_OPTION);