Cache JS adds search of Info for jalview_xxx properties
[jalview.git] / src / jalview / util / Platform.java
index e4ee197..d80e3de 100644 (file)
@@ -349,14 +349,26 @@ public class Platform
      */
   }
 
+  /**
+   * Encode the URI using JavaScript encodeURIComponent
+   * 
+   * @param value
+   * @return encoded value
+   */
   public static String encodeURI(String value)
   {
     /**
-     * @j2sNative return encodeURIComponent(value);
+     * @j2sNative value = encodeURIComponent(value);
      */
     return value;
   }
 
+  /**
+   * Open the URL using a simple window call if this is JavaScript
+   * 
+   * @param url
+   * @return true if window has been opened
+   */
   public static boolean openURL(String url)
   {
     if (!isJS())
@@ -403,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);
 
     /**