Question

Sorry for removing the original question but will try to save you from having to read through a lot of things I've tried that don't work very well.

Basically Eclipse with JSDT can't do the job. Tried to define all my namespaces with constructor functions like here (end of the question last update). But it's all too much trouble.

Trying netbeans now and it'll assist most of the closure library and all of my code. Some things like goog.array won't complete because goog.array is never defined. When adding goog.array=new Object() to the array.js it'll complete goog.array and goog.array.ArrayLike. These modded js file go in your js/libs directory.

Was it helpful?

Solution

To be used as a type, DOM must be annotated as a constructor or interface.

/** @constructor Interaction between dom and js code */
function DOM(){}

OTHER TIPS

tern.java provides a support for Google Closure Library inside Eclipse. It integrates the tern plugin tern-closure which is very powerful: it uses JS sources of Google Closure and manages closure compiler annotations.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top