Jump to: navigation, search

Difference between revisions of "VJET/Importing VJET ANVILs"

(New page: Most developers will want to use 3rd party JavaScript libraries with VJET JS IDE.  VJET JavaScript publishes type libraries for a few commonly used JavaScript libraries.  VJET JS...)
 
(Download VJET ANVIL)
(11 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 type libraries for a few commonly used JavaScript libraries.  VJET JS type libraries are published as Eclipse projects, imported into the Eclipse workspace, then referenced using the VJET JS IDE code assist features.
+
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 JavaScript Type Libraries ==
+
== Download VJET ANVIL==
  
[[https://www.ebayopensource.org/index.php/VJET/Downloads Download the VJET JavaScript Type Library projects]] you want to use:
+
[[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 Type Library Projects into Eclipse ==
+
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 &nbsp;'''Select archive file''', then press '''Browse''' and select the project you want to import. You can only select one project at a time.
 
# Select &nbsp;'''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.'''&nbsp; The imported VJET Type Library project appears in the Explorer.&nbsp;&nbsp; In order to reference the types, you must update your project's build path.
+
# Select '''Finish.'''&nbsp; The imported VJET ANVIL project appears in the Explorer.&nbsp;&nbsp; In order to reference the types, you must update your project's build path.
<br/>
+
 
 
<br/>
 
<br/>
 
[[Image:Vjet_typelib_imported_all.gif]]
 
[[Image:Vjet_typelib_imported_all.gif]]
 
  
 
=== Update Your Project's Build Path ===
 
=== Update Your Project's Build Path ===
Line 29: Line 30:
 
# In the '''Projects tab''', press '''Add''' and select the type library projects you want to add.&nbsp;&nbsp; (Only VJET Projects are listed in this dialog)
 
# In the '''Projects tab''', press '''Add''' and select the type library projects you want to add.&nbsp;&nbsp; (Only VJET Projects are listed in this dialog)
 
# Select '''OK''' *<nowiki>-</nowiki>> Finish*.&nbsp; The type libraries are added to the project's build path.
 
# Select '''OK''' *<nowiki>-</nowiki>> Finish*.&nbsp; The type libraries are added to the project's build path.
<br/>
 
 
<br/>
 
<br/>
 
[[Image:Vjet_build_path_verify.gif]]
 
[[Image:Vjet_build_path_verify.gif]]
 
 
<br/>
 
<br/>
 
# Once added to the build path, you can use the code assist features.
 
# Once added to the build path, you can use the code assist features.
 
<br/>
 
<br/>
 +
[[Image:Vjet_typelib_use1.gif]]
 
<br/>
 
<br/>
[[Image:Vjet_typelib_use1.gif]]
 
 
 
<br/>
 
<br/>
 
[[Image:Vjet_typelib_use2.gif]]
 
[[Image:Vjet_typelib_use2.gif]]
  
  
[[Category:VJET]]
+
[[Category:VJET|ANVILS]]

Revision as of 15: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

  1. In Eclipse, select File > Import
  2. In the Import wizard select General > Existing Projects Into Workspace
  3. Select Next
  4. Select  Select archive file, then press Browse and select the project you want to import. You can only select one project at a time.
  5. 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.


Vjet typelib imported all.gif

Update Your Project's Build Path

  1. Right-Click on your project; select Build Path -> Configure Build Path
  2. In the Projects tab, press Add and select the type library projects you want to add.   (Only VJET Projects are listed in this dialog)
  3. Select OK *-> Finish*.  The type libraries are added to the project's build path.


Vjet build path verify.gif

  1. Once added to the build path, you can use the code assist features.


Vjet typelib use1.gif

Vjet typelib use2.gif