下载spkte的jar包 运行java -jar spket-1.6.22.jar 如下为官方安装ext说明 Create JavaScript profile for Ext 4.x Download Ext 4.x, unzip it, do not delete the src folder. . Select the menu item Window Preferences... to open the workbench prefer
下载spkte的jar包 运行java -jar spket-1.6.22.jar
如下为官方安装ext说明
Create JavaScript profile for Ext 4.x
- Download Ext 4.x, unzip it, do not delete the src folder..
- Select the menu item Window > Preferences... to open the workbench preferences.
- Select the Spket > JavaScript Profile preference page to display the installed
JavaScript Profiles.
- Click the New.. button. In the Name field,
type Ext 4 as the name for the new profile. Then clickOK.
- Click the Add Library button. From the Library drop-down
list, select ExtJS. Then click OK.
- Click the Add File button, choose sdk.jsb3 which
can be found in build folder.
- 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.
- If everything done correctly, your profile should looks like this.
- Click on OK to save the preferences.
- 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.
Caution
For Ext 4.1.x, before creating profile, you have to move sdk.jsb3 from extjs-4.1.x/build to extjs-4.1.x
但是ext4.2中并不好使 原因是没有了sdk.jsb3这个文件,所以要用导入文件夹的方法来安装
这里的一篇文章专门讲如何导入extjs4.2 http://www.haogongju.net/art/1956707