GWT JSNI autocomplete?

Hi,

I'm developing a wrapper in GWT around a javascript file, so i have to write a bunch of native methods to integrate with the js file. While i do have autocomplete on the native methods for Java Classes, it seems that IDEA does not recognize JS functions of a file defined in the .gwt.xml descriptor. So i have something like this:

descriptor gwt.xml:

...
<script src="script.js"/>
...

script.js:

function someFunction() {}

my java file:

...
public native void test() /*-{
$wdn.someFunction();   
}-*/;
..

IDEA won't recognize '.someFunction();' on the Java file. Am i missing something here? Or IDEA does not support it? I'm using the latest EAP(#10624) build btw.

Regards

Roberto Cortez

2 comments
Comment actions Permalink

Yes, IDEA doesn't support it. Please file a Jira issue for this (http://jetbrains.net/jira/browse/IDEA).

Hi,

I'm developing a wrapper in GWT around a javascript file, so i have to write a bunch of native methods to integrate with the js file. While i do have autocomplete on the native methods for Java Classes, it seems that IDEA does not recognize JS functions of a file defined in the .gwt.xml descriptor.
So i have something like this:

descriptor gwt.xml:

..
<script src="script.js"/>
..

script.js:

function someFunction() {}

my java file:

..
public native void test() /*-{
$wdn.someFunction();
}-*/;
.

IDEA won't recognize '.someFunction();' on the Java file. Am i missing something here? Or IDEA does not support it? I'm using the latest EAP(#10624) build btw.

Regards

Roberto Cortez

---
Original message URL: http://www.jetbrains.net/devnet/message/5243152#5243152



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thank you for the quick answer

0

Please sign in to leave a comment.