在這裏介紹一下在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