Webstorm with rhino

 I am trying to use WebStorm to import Java classes with a syntax such as:

importPackage(Packages.java.io);
importPackage(Packages.java.awt);
importPackage(Packages.com.sk89q.worldedit);
importPackage(Packages.com.sk89q.worldedit.blocks);
importPackage(com.sk89q.worldedit.regions);

and later use them with such statements as

new BaseBlock(BlockID.QUARTZ_BLOCK, 0));

The sk89q java packages are open source and on github, (https://github.com/sk89q/WorldEdit)  It would be nice if I could somehow feed something to WebStorm so it would know about all these classes that I am calling, giving code completion, et al.

Is this possible?  How do I do it?

Thanks,

Ed Greenberg

 

0

WebStorm provides no support for Rhino, and it can hardly be expected in near future; please follow https://youtrack.jetbrains.com/issue/WEB-2884 for updates.

Nashorn support (including debugging) is available in Intellij Idea. But unfortunately we don't plan to include it in WebStorm, as it's next to useless without Java support that is missing in WebStorm

0

请先登录再写评论。