This morning I read the Goktug's slides and was surprised by the GWT.jsni() 
method. It is a nice use case for rebinding methods. I just added a version 
of GWT.jsni() to HelloRebinding sample, implementing it as a rebinding 
method (no compiler mods). It took me just 30 minutes of coding to add an 
extension to support this:

    JsniUtil.jsni("$wnd.alert(#)", message);

- Usage: 
https://github.com/andrestesti/gwt-rebindingmethods/blob/master/samples/hellorebinding/src/com/google/gwt/sample/hellorebinding/client/MainWidget.java#L65

- 
Definition:https://github.com/andrestesti/gwt-rebindingmethods/blob/master/samples/hellorebinding/src/com/google/gwt/sample/hellorebinding/client/util/JsniUtil.java#L38

- Generator: 
https://github.com/andrestesti/gwt-rebindingmethods/blob/master/samples/hellorebinding/src/com/google/gwt/sample/hellorebinding/rebind/JsniSnippetGenerator.java#L32


Regards.

- Andrés Testi


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to