JSInterop and terse JSNI syntax

2015-02-10 Thread Nuno R
Hi.

Ray's talk, Deep Dive in JsInterop 
https://drive.google.com/file/d/0B3ktS-w9vr8IN3d6UUNyWTJIOTQ/view, shows 
an example to write terse JSNI syntax without the need to write native 
methods. Is this already available on 2.7.0?

String helloWorld = js(“$0 + $1”, “Hello”, “World”);

I found the JsInterop annotations but not the *js()* method.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSInterop and terse JSNI syntax

2015-02-10 Thread Jens
The js() method does not exist yet (not even in GWT trunk).

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSInterop and terse JSNI syntax

2015-02-10 Thread Nuno Graça
You need to enable the flag -XjsInteropMode to use JSInterop.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.