ExtJs在Eclipse中的环境配置

在这里介绍一下在Eclipse中搭建ExtJs的环境

1、到这里下载插件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,这样,插件就装好啦,当然还有其他办法,这里就略过啦。

2、下载一个版本的Extjs,如我的是3.4版本的,一般情况下spket会跟上那些版本的,大家注意下载比较新的版本就是啦。下载完解压后在根目录下有个ext.jsb2文件。

3、选择myeclipse菜单中的Window > Preferences...打开Preferences,如果安装成功1中的插件,是会出现spket这个选项的,接着选择Spket > JavaScript Profile;按new...按钮新建一个类型,在弹出对话框中填写ExtJs;选择Add Library按钮 ,这里选择ExtJs; 按Add File按钮引入ext.jsb2文件;根据个人爱好选中要关联的文件;这样就完了。。

4、最后,记住是要用Spket JavaScript Editor来打开js文件。

有了代码提示。。开发起来应该就没那么痛苦啦。希望能帮到大家一点咯。。

其实这些在Spket 网站上有滴。原文如下:

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.

还有其他不少的好用的东西,大家慢慢去探索吧。。。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值