1. 程式人生 > >如何在MyEclipse 8.0M1上安裝Ext

如何在MyEclipse 8.0M1上安裝Ext

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包安裝


轉載地址: http://blog.csdn.net/elifefly/archive/2009/01/10/3745637.aspx


一、安裝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程式碼自動完成的功能。