Skip to main content

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.

Jump to: navigation, search

VJET/ANVILS

< VJET
Revision as of 15:20, 20 March 2013 by Earlyster.gmail.com (Talk | contribs) (These ANVILs are part of the VJET project)

Introducing VJET ANVILS

(Formerly known as VJET Type libraries)

Authoring - give you great code assist for the right javascript scope

Navigation - help you navigate the code base based on call hierarchy, references, etc.

Validation - provide semantic validation

Instruction - Helps with inline documentation

Libraries - Packaged as an Eclipse project just import and depend on.

Overview

VJET ANVILs provide a way to work with 3rd party Javascript libraries without requiring an Eclipse plugin because the ANVILS are described with javascript.

The idea behind the "ANVIL" is to create definitions which describe other JavaScript libraries. JavaScript is a huge area today thanks to Client and Server-side libraries such as jQuery and Node.js.

ANVIL "descriptions" are defined in a structured definition format called vjo.js. vjo.js is JavaScript itself (which is kind of nice - JavaScript describing other JavaScript).

We can think of the vjo.js as being similar to Java Interfaces and Class declarations. We can "describe" the coding contracts only but no their implementation. The implementation is always the real runtime library that would physically be included in your webpage like jquery (<script src="http://code.jquery.com/jquery-1.9.1.min.js";></script>) or server-side Node module being used via require(...).

The ANVIL is read in by the Eclipse IDE and provides the necessary information for it to provide authoring assistance and validations. Authoring assistance would be things like type completion and proposals which are concepts we generally enjoy with typed languages like Java.

Also, those definitions help VJET do validation on your code as well. For example your function takes a String and Number argument but someone passed in an Array or Date. In raw JavaScript this is just tough luck and bad things happen at runtime. With VJET, this scenario is caught and flagged as an error for the developer to correct.

JavaScript is a simple language on the surface and provides very limited types (Object, Function, Array, Date, Boolean, String, Number and RegExp) only. However, JavaScript can create very complex functions and types that benefit from more type support and that's where VJET comes into play.

Available VJET ANVILs

These ANVILs are part of the VJET project

  1. Dojo 1.6 [git]
  2. EcmaScript Ed. 5 api updates [git]
  3. HTML 5 Canvas 2D API [git]
  4. jQuery 1.4 [git]
  5. jQuery Mobile 1.0 Alpha 4.1 (Requires JQuery ANVIL) [git]
  6. JSON (plans to include in the built in ANVIL) - see bug [402813] [git]
  7. Node.js 0.4 [git] screenshots

3rd party created commercial ANVILs

  1. ExtJs 4.0.7, 4.1, 4.2 - [Sencha]
  2. Sencha Touch 2.1,2.2 - [Sencha]

Under development/ VJET ANVILs

These ANVILs are part of VJET project

  1. Console [git]
  2. PerformanceTiming [git]
  3. SWFObject [git]
  4. Scriptaculous [git]
  5. Prototype [git]
  6. PhoneGap/Apache Cordova [git]

3rd party created/provided ANVILs

NodeJS 0.10 - Mark Palaima http://www.linkedin.com/in/markpalaima

Copyright © Eclipse Foundation, Inc. All Rights Reserved.