在这里介绍一下在Eclipse中搭建ExtJs的环境javascript
一、到这里下载插件http://www.spket.com/download.html,个人是myeclipse,下载完解压到安装目录下的我本身建的一个目录下,入个人是:D:\my program\myplugins\spket-1.6.22,而后在D:\my program\MyEclipse 9\dropins目录下建一个.link文件,如个人是spket.link,其内容是:path=D:\\my program\\myplugins\\spket-1.6.22\\eclipse,这样,插件就装好啦,固然还有其余办法,这里就略过啦。html
二、下载一个版本的Extjs,如个人是3.4版本的,通常状况下spket会跟上那些版本的,你们注意下载比较新的版本就是啦。下载完解压后在根目录下有个ext.jsb2文件。java
三、选择myeclipse菜单中的Window > Preferences...打开Preferences,若是安装成功1中的插件,是会出现spket这个选项的,接着选择Spket > JavaScript Profile;按new...按钮新建一个类型,在弹出对话框中填写ExtJs;选择Add Library按钮 ,这里选择ExtJs; 按Add File按钮引入ext.jsb2文件;根据我的爱好选中要关联的文件;这样就完了。。eclipse
四、最后,记住是要用Spket JavaScript Editor来打开js文件。网站
有了代码提示。。开发起来应该就没那么痛苦啦。但愿能帮到你们一点咯。。ui
其实这些在Spket 网站上有滴。原文以下:this
1.Download Ext 4.x, unzip it, do not delete the src folder..
2.Select the menu item Window > Preferences... to open the workbench preferences.
3.Select the Spket > JavaScript Profile preference page to display the installed JavaScript Profiles.
4.Click the New.. button. In the Name field, type Ext 4 as the name for the new profile. Then click OK.
5.Click the Add Library button. From the Library drop-down list, select ExtJS. Then click OK.
6.Click the Add File button, choose sdk.jsb3 which can be found in build folder.
7.Select the Ext profile created in step 4, click the Default button make it the default profile for all project. The default profile can also be configured per project by using Configure Project Specific Settings... link.
8.If everything done correctly, your profile should looks like this.
9.Click on OK to save the preferences.
10.Open javascript file with Spket JavaScript Editor. If you not sure which editor you used, take a look at this screen shot. click Ctrl+Space or Alt+/, the code assist window will looks like this if there is no code.插件还有其余很多的好用的东西,你们慢慢去探索吧。。。
code