Cache JS adds search of Info for jalview_xxx properties
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sun, 31 Mar 2019 17:17:15 +0000 (12:17 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sun, 31 Mar 2019 17:17:15 +0000 (12:17 -0500)
src/jalview/bin/Cache.java
src/jalview/util/Platform.java

index e20b75d..fda04cb 100755 (executable)
@@ -596,7 +596,13 @@ public class Cache
    */
   public static String getProperty(String key)
   {
-    return applicationProperties.getProperty(key);
+    String prop = applicationProperties.getProperty(key);
+    if (prop == null && Platform.isJS())
+    {
+      prop = applicationProperties.getProperty(Platform.getUniqueAppletID()
+              + "_" + JS_PROPERTY_PREFIX + key);
+    }
+    return prop;
   }
 
   /**
index 118269a..d80e3de 100644 (file)
@@ -415,6 +415,8 @@ public class Platform
      *            if (key.indexOf(prefix) == 0) { value = "" + info[key];
      */
 
+    System.out.println(
+            "Platform id=" + id + " reading Info." + key + " = " + value);
     p.put(id + "_" + key, value);
 
     /**