consolidation of Platform isJS calls
[jalview.git] / src / jalview / util / Platform.java
index e4ee197..118269a 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())