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.
To be used as a type, DOM
must be annotated as a constructor or interface.
/** @constructor Interaction between dom and js code */
function DOM(){}