Revision: 7327
Author: [email protected]
Date: Thu Dec 17 11:25:09 2009
Log: RFE - Issue 3906: Overload GWT.log with a single String arg

Review by: jat


http://code.google.com/p/google-web-toolkit/source/detail?r=7327

Modified:
  /trunk/user/src/com/google/gwt/core/client/GWT.java

=======================================
--- /trunk/user/src/com/google/gwt/core/client/GWT.java Mon Oct 26 14:02:26  
2009
+++ /trunk/user/src/com/google/gwt/core/client/GWT.java Thu Dec 17 11:25:09  
2009
@@ -191,6 +191,17 @@
      // Replaced with "true" by GWT compiler.
      return false;
    }
+
+  /**
+   * Logs a message to the development shell logger in hosted mode. Calls  
are
+   * optimized out in web mode.
+   */
+  @SuppressWarnings("unused")
+  public static void log(String message) {
+    if (sGWTBridge != null) {
+      sGWTBridge.log(message, null);
+    }
+  }

    /**
     * Logs a message to the development shell logger in hosted mode. Calls  
are

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to