ExtJs在Eclipse中的代码提示环境配置

来源:互联网 发布:mac怎么玩梦幻西游手游 编辑:程序博客网 时间:2024/06/07 14:41

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.

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


注:文章由CoderMan原创,转载请说明出处:CoderMan官方主页

0 0
原创粉丝点击