JAL-2757 reset textbox after a non HTTP 200 response
authorJim Procter <jprocter@issues.jalview.org>
Thu, 5 Oct 2017 17:59:09 +0000 (18:59 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 5 Oct 2017 17:59:09 +0000 (18:59 +0100)
src/jalview/fts/service/uniprot/UniprotFTSPanel.java

index 2dad2f7..748088d 100644 (file)
@@ -40,7 +40,7 @@ public class UniprotFTSPanel extends GFTSPanel
   private static String defaultFTSFrameTitle = MessageManager
           .getString("label.uniprot_sequence_fetcher");
 
-  private static Map<String, Integer> tempUserPrefs = new HashMap<String, Integer>();
+  private static Map<String, Integer> tempUserPrefs = new HashMap<>();
 
   private static final String UNIPROT_FTS_CACHE_KEY = "CACHE.UNIPROT_FTS";
 
@@ -96,6 +96,7 @@ public class UniprotFTSPanel extends GFTSPanel
             e.printStackTrace();
             setErrorMessage(e.getMessage());
             checkForErrors();
+            setSearchInProgress(false);
             return;
           }
 
@@ -183,7 +184,7 @@ public class UniprotFTSPanel extends GFTSPanel
   {
     disableActionButtons();
     StringBuilder selectedIds = new StringBuilder();
-    HashSet<String> selectedIdsSet = new HashSet<String>();
+    HashSet<String> selectedIdsSet = new HashSet<>();
     int primaryKeyColIndex = 0;
     try
     {