Eclipse下使用JSEclipse开发JavaScript

如何在eclipse下进行ext的开发工作。
        第一:eclipse环境建立(基于项目组目前的环境设置)
        第二:下载jsEclipse:http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_jseclipse  (需要注册)
        第三:配置文件关联方式: window-preference---general-editors:file association,找到*.js,将jseclipse设为default。
        第四:打开任意一个js文件(为了出现JSEclipse菜单),在JSEclipse菜单下,选择Add Library,导航到ext-all-debug.js,引入该库,然后在菜单下:refresh code completion library即可,这将会在D:\workspace\.metadata\.plugins\com.interaktonline.jseclipse\library\YourProject下生成插件xml文档。
 
        如此设置后,你在js文件中将会得到智能感知和自动完成的功能了,包括js固有的对象,还有第四步我们引入的ext库。
 
本文出自 “雨寒” 博客。
posted @ 2012-10-15 10:17  Lorence Zhang  阅读(3021)  评论(0)    收藏  举报