You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (JIRA)" <ji...@apache.org> on 2017/12/18 04:10:04 UTC

[jira] [Comment Edited] (NETBEANS-206) Please add support for JSNI

    [ https://issues.apache.org/jira/browse/NETBEANS-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16294494#comment-16294494 ] 

Jaroslav Tulach edited comment on NETBEANS-206 at 12/18/17 4:09 AM:
--------------------------------------------------------------------

As far as HTML/Java goes, then I think my answer to these ideas has already been given: In January 2014 I wrote http://wiki.apidesign.org/wiki/MigrateFromGWT. The primary difference is that the `@JavaScriptBody` annotation has to be inserted into bytecode - e.g. it cannot be just a comment like JSNI. Yes, there there can be a syntax support, hint/conversion tool in the IDE and [~jlahoda] and [~tzezula] wrote one - I am just not able to find the module right now.


was (Author: jtulach):
As far as I HTML/Java goes, then I think my answer to these ideas has already been given: In January 2014 I wrote http://wiki.apidesign.org/wiki/MigrateFromGWT. The primary difference is that the `@JavaScriptBody` annotation has to be inserted into bytecode - e.g. it cannot be just a comment like JSNI. Yes, there there can be a syntax support, hint/conversion tool in the IDE and [~jlahoda] and [~tzezula] wrote one - I am just not able to find the module right now.

> Please add support for JSNI
> ---------------------------
>
>                 Key: NETBEANS-206
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-206
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: java - Editor
>    Affects Versions: Next
>            Reporter: Christian Lenz
>
> I figured out that you will add support for Mixed development support between C/C++ and Java in netbeans 8.1: http://wiki.netbeans.org/NewAndNoteworthyNB81. I really like that for JNI and JNA but what about mixed development support for Java and Javascript like GWT and the JSNI functions? I have to use GWT in our company and it is really hard to find out errors when you only see commented methods like:
> {code}
> public static native void alert(String msg) /*-{
>   $wnd.alert(msg);
> }-*/;
> {code}
> I know there is a plugin called GWT4NB but for now, I don't see any benefits to use this. Here is a description for JSNI: http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html
> This would be a big enhancement to have syntax highlighting, navigation to JS files like with C/C++ and Java, have code completion, and so on.
> Regards
> Chris



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)