Selena - GWT toolkit native Javascript highlighting

The construct bellow is highlighted in all rainbow colors but it is valid statement in GWT, would be nice to have code completion to work with this as well.

+public native static int getAbsoluteY(Element el) /*-{
...
@com.test.util.ui.DomUtil::getAbsoluteY(Lcom/google/gwt/user/client/Element;)
...
}-*/;+

0
Avatar
Permanently deleted user

Hello Vladimir,

Support for method/field access expressions is planned for Selena (http://www.jetbrains.net/jira/browse/IDEADEV-8200).

The construct bellow is highlighted in all rainbow colors but it is
valid statement in GWT, would be nice to have code completion to work
with this as well.

+public native static int getAbsoluteY(Element el) /*-{
..
@com.test.util.ui.DomUtil::getAbsoluteY(Lcom/google/gwt/user/client/El
ement;)
..
}-*/;+



0

Ah, that's why I couldn't get this to work. Thanks!

Is there a way to to get IDEA to compile anyhow if I'm using JSNI callbacks? I'd hate to give up the nice IDEA integration.

0

请先登录再写评论。