JaroslavTulach opened a new pull request #36:
URL: https://github.com/apache/netbeans-html4j/pull/36


   Support for `@JavaScriptBody` annotation completions. The callback syntax is 
described at [net.java.html.js 
package](https://bits.netbeans.org/html+java/1.7.1/net/java/html/js/package-summary.html).
 A `body` attribute can contain `@fqn::method(paramTypes)(values)` static 
callbacks and `arg.@fqn::method(paramTypes)(values)` instance callback. The 
code completion should work on `x.@|`, `@java.lang.|` locations to 
completeclass names and then also method names.
   
   The code complation seems to work in NetBeans IDE. I haven't got it working 
in VSCode yet.
   
   
![obrazek](https://user-images.githubusercontent.com/26887752/121070397-f7d42d00-c7ce-11eb-90fa-bec9a521e508.png)
   
![obrazek](https://user-images.githubusercontent.com/26887752/121070489-133f3800-c7cf-11eb-81fc-c6960970dbf6.png)
   
   Try the completion on 
[Bodies.java](https://github.com/apache/netbeans-html4j/blob/master/json-tck/src/main/java/net/java/html/js/tests/Bodies.java)
 for example.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to