From: Jim Procter Date: Thu, 5 Oct 2017 17:59:09 +0000 (+0100) Subject: JAL-2757 reset textbox after a non HTTP 200 response X-Git-Tag: Release_2_10_3b1~113^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e3dcbe461d12e68b97cd81d599dc52d2e042dd28;p=jalview.git JAL-2757 reset textbox after a non HTTP 200 response --- 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 {