Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
VJET/User Guide
Contents
- 1 Installation Instructions
- 2 Writing JS
- 3 Writing JS and using other JS files
- 4 Using a JavaScript Library
- 5 Using VJETDoc
- 6 Using VJET VJOJS
- 7 Migrating from org.ebayopensource version of VJET
- 8 How to use Java to JavaScript?
- 9 How to use JavaScript to Java?
- 10 How to use 3rd party javascript libraries?
Installation Instructions
http://wiki.eclipse.org/VJET/VJET_JavaScript_IDE_Installation_Guide
Writing JS
After installation switch to the VJET perspective
Then Create a VJET project
Then create a new JS file
In your new .js file type control + space and see content assist help you with Primitive Javascript and Browser apis.
Writing JS and using other JS files
If you want to let VJET know about variables or functions that you want to use from another file see
http://wiki.eclipse.org/VJET/JS_code_assist_and_validation_for_two_or_more_js_files
Using a JavaScript Library
TODO
Using VJETDoc
While writing .js files you can add comments your file for "typing" your js functions and variables.
Here is a simple example where one comment helps find errors
http://wiki.eclipse.org/VJET/Type_Declarations_Using_VJETDoc
Using VJET VJOJS
VJET Vjo is a lightweight Javascript library which can be used to define objects in JavaScript.
Hello World Example using vjo.js http://plnkr.co/edit/JQ0wDV
http://wiki.eclipse.org/Category:VJOJS
Migrating from org.ebayopensource version of VJET
http://wiki.eclipse.org/VJET/SwitchingFromEbayOpenSourceVJET
How to use Java to JavaScript?
http://wiki.eclipse.org/Category:JavaToJs
How to use JavaScript to Java?
http://wiki.eclipse.org/Category:JsToJava