This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NetBeans has good "Import" feature in java file and "Include" file in php file. Why not extend it to support javascript . When the web resource inlucdes any javascript libraries in a web project(normal HTML, Java Web, PHP ), NetBeans should be scan them at startup time. When using a js object in editor, the editor can detect whether the js object exists in some js files. If it is exists, give a code completation notification to user to fix it. The result is generate "<script></script>" code fragement in "head" tags. For example. I use a "dojo.xxx" is a javascript code fragment , the editor should give an error notification to user and provide code completation to include dojo library in the project resource folder .
http://forums.netbeans.org/topic43936.html