Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "VJET/Importing VJET ANVILs"
< VJET
(→Import Type Library Projects into Eclipse) |
(→Download VJET ANVIL) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Most developers will want to use 3rd party JavaScript libraries with VJET JS IDE. VJET JavaScript publishes | + | Most developers will want to use 3rd party JavaScript libraries with VJET JS IDE. VJET JavaScript publishes ANVIL for a few commonly used JavaScript libraries. VJET ANVILs are published as Eclipse projects, imported into the Eclipse workspace, then referenced using the VJET JS IDE code assist features. |
<br/> | <br/> | ||
− | == Download VJET | + | == Download VJET ANVIL== |
− | [[ | + | [[http://eclipse.org/vjet/download/ Download the VJET ANVIL projects]] you want to use: |
* Node.js | * Node.js | ||
Line 12: | Line 12: | ||
* Canvas | * Canvas | ||
− | == Import | + | You can also find the source code for some of the ANVILs in git see the [[VJET/ANVILS|VJET ANVILS]] page for list of ANVILs. |
+ | |||
+ | == Import ANVIL Projects into Eclipse == | ||
# In Eclipse, select '''File > Import''' | # In Eclipse, select '''File > Import''' | ||
Line 18: | Line 20: | ||
# Select '''Next''' | # Select '''Next''' | ||
# Select '''Select archive file''', then press '''Browse''' and select the project you want to import. You can only select one project at a time. | # Select '''Select archive file''', then press '''Browse''' and select the project you want to import. You can only select one project at a time. | ||
− | # Select '''Finish.''' The imported VJET | + | # Select '''Finish.''' The imported VJET ANVIL project appears in the Explorer. In order to reference the types, you must update your project's build path. |
<br/> | <br/> | ||
Line 34: | Line 36: | ||
<br/> | <br/> | ||
[[Image:Vjet_typelib_use1.gif]] | [[Image:Vjet_typelib_use1.gif]] | ||
+ | <br/> | ||
<br/> | <br/> | ||
[[Image:Vjet_typelib_use2.gif]] | [[Image:Vjet_typelib_use2.gif]] | ||
− | [[Category:VJET]] | + | [[Category:VJET|ANVILS]] |
Revision as of 16:38, 20 March 2013
Most developers will want to use 3rd party JavaScript libraries with VJET JS IDE. VJET JavaScript publishes ANVIL for a few commonly used JavaScript libraries. VJET ANVILs are published as Eclipse projects, imported into the Eclipse workspace, then referenced using the VJET JS IDE code assist features.
Download VJET ANVIL
[Download the VJET ANVIL projects] you want to use:
- Node.js
- jQuery
- Dojo
- JSON
- Canvas
You can also find the source code for some of the ANVILs in git see the VJET ANVILS page for list of ANVILs.
Import ANVIL Projects into Eclipse
- In Eclipse, select File > Import
- In the Import wizard select General > Existing Projects Into Workspace
- Select Next
- Select Select archive file, then press Browse and select the project you want to import. You can only select one project at a time.
- Select Finish. The imported VJET ANVIL project appears in the Explorer. In order to reference the types, you must update your project's build path.
Update Your Project's Build Path
- Right-Click on your project; select Build Path -> Configure Build Path
- In the Projects tab, press Add and select the type library projects you want to add. (Only VJET Projects are listed in this dialog)
- Select OK *-> Finish*. The type libraries are added to the project's build path.
- Once added to the build path, you can use the code assist features.