From e3dcbe461d12e68b97cd81d599dc52d2e042dd28 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 5 Oct 2017 18:59:09 +0100 Subject: [PATCH] JAL-2757 reset textbox after a non HTTP 200 response --- src/jalview/fts/service/uniprot/UniprotFTSPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/fts/service/uniprot/UniprotFTSPanel.java b/src/jalview/fts/service/uniprot/UniprotFTSPanel.java index 2dad2f7..748088d 100644 --- a/src/jalview/fts/service/uniprot/UniprotFTSPanel.java +++ b/src/jalview/fts/service/uniprot/UniprotFTSPanel.java @@ -40,7 +40,7 @@ public class UniprotFTSPanel extends GFTSPanel private static String defaultFTSFrameTitle = MessageManager .getString("label.uniprot_sequence_fetcher"); - private static Map tempUserPrefs = new HashMap(); + private static Map 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 selectedIdsSet = new HashSet(); + HashSet selectedIdsSet = new HashSet<>(); int primaryKeyColIndex = 0; try { -- 1.7.10.2