JAL-1648 Added improvement to persist cache items to properties file beyound a Jalvie...
[jalview.git] / src / jalview / fts / service / uniprot / UniprotFTSPanel.java
index eba0f88..88442de 100644 (file)
@@ -43,7 +43,7 @@ public class UniprotFTSPanel extends GFTSPanel
 
   private static Map<String, Integer> tempUserPrefs = new HashMap<String, Integer>();
 
-  private static final String UNIPROT_FTS_CACHE_KEY = "UNIPROT_FTS_CACHE_KEY";
+  private static final String UNIPROT_FTS_CACHE_KEY = "CACHE.UNIPROT_FTS";
 
   public UniprotFTSPanel(SequenceFetcher seqFetcher)
   {
@@ -53,7 +53,7 @@ public class UniprotFTSPanel extends GFTSPanel
     this.seqFetcher = seqFetcher;
     this.progressIndicator = (seqFetcher == null) ? null : seqFetcher
             .getProgressIndicator();
-    fireCache();
+    initCache();
   }
 
   @Override
@@ -145,7 +145,7 @@ public class UniprotFTSPanel extends GFTSPanel
           refreshPaginatorState();
           updateSummaryTableSelections();
         }
-        fireCache();
+        updateCache();
       }
     }.start();