1. 程式人生 > >Ext Spket在Eclipse/MyEclipse下的安裝和配置(圖文教程)

Ext Spket在Eclipse/MyEclipse下的安裝和配置(圖文教程)

學習分享必看:javacto.taobao.com

myeclipse下使用ext的外掛有三種方式:

1:配置線上使用:

開啟myeclipse:

1、選擇Help -> Software Updates -> Find and Install...-> Search for new features to install ->New remote site...
Name: "Spket", Url: "http://www.spket.com/update/"下載完畢重啟 Eclipse

2、Window -> Preferences -> Spket -> JavaScript Profiles -> New ;
輸入“ExtJS”點選OK;
選擇“ExtJS” 並點選“Add Library”然後在下拉條中選取“ExtJS”;
選擇 “ExtJS”並點選“Add File”,然後在你的./ext-2.x/source目錄中選取“ext.jsb” 檔案;

3、設定新的ExtJS Profile,選中並點選“JavaScript Profiles” 對話方塊右手邊的“Defalut”按鈕;

4、 JS開啟方式為 Window -> Preferences ->General-> Editors-> File...選擇JS 為 Spket JavaScript Editor(default)*********(這個不要忘!!!)

2:是下載spket-1.6.16.jar包安裝

 

 

一、安裝Spket

第一種方法:網上更新方式

1.外掛首頁:http://www.spket.com
2.外掛名稱:Spket IDE
3.更新連線(Update Site):http://www.spket.com/update/
更新安裝方法:

1.[Help]-[Software Updates]-[Find and Install...]

2.[Search for new features to install] -> [Next]

3.[New Remote Site...] Name: "什麼都行,spketjs" URL:

http://www.spket.com/update/--> [Finish]

 

第二種方法:網上下載spket-1.6.16.jar破解版(目前最新版本)

 

1.如果你的JDK在1.6以上,可以直接雙擊spket-1.6.16.jar執行安裝。

其它,使用命令列方式。(注意:自己切換命令列到spket-1.6.16.jar所在目錄)

2.

 

 

 

 

 

 

至此,安裝完成。

 

 

 

二、配置Spket

 

 

注意:如果在安裝spket過程中,你的eclipse或者Myeclipse是開啟的,請重啟eclipse或者Myeclipse。以便初始化外掛,下面才會在Preferences中看到 Spket選項。

基本步驟如下:
1)Window → Preferences → Spket ;

 

2)Spket → JavaScript Profiles → New, 輸入“ExtJS”點選OK;


3)選擇“ExtJS” 並點選“Add Library”然後在下拉條中選取“ExtJS”;


4)選擇 “ExtJS”並點選“Add File”,然後在你的./ext-2.x/source目錄中選取“ext.jsb” 檔案(注:是下載的ext的原始檔和api文件);


5)設定新的ExtJS Profile,選中並點選“JavaScript Profiles” 對話方塊右手邊的“Defalut”按鈕;

下面這個操作,根據自己需要設定(可以全選)。


6)重啟eclipse或者Myeclipse;


7)建立新的JS檔案並輸入: Ext這樣就可設定Ext Code程式碼自動完成的功能。

效果如下:

 

 

3:下載spket-1.6.16.rar的壓縮的包,

把spket-1.6.16/eclipse/plugins下的全部的檔案放到myeclipse安裝路徑下eclipse/plugins下,

重啟myeclipse從上方法:二、配置Spket開始下同。

如果Window → Preferences 下沒有→ Spket ,把myeclipse安裝路徑下eclipse/configuration下有這個資料夾包org.eclipse.update,刪除重新啟動myeclipse從二、配置Spket開始下同。