MyEclipse安装spket插件

Myeclipse下编辑js文件极度不方便,进行extjs开发更是很痛苦。幸好spket开发了一套比较人性化的编辑器,方便了js和extjs的开发。这里主要记录插件版的spket安装和配置。

现在extjs已经升级到了4.1。我的Myeclipse里面安装的有3版本的spket插件,公司升级使用extjs4后便失去了提示等功能。OK,升级spket吧!查看其官方网站,说是最新版的spket支持4了。于是开心的下载,安装……可是不知道哪里没有配对,弄了半天,Myeclipse里面连spket菜单都出不来。

最后只好还原了1.6.18。(下面提供1.6.18的安装和设置支持extjs4的方法)。

1.  spket官方网站下载1.6.18版本(注意:这个版本原生是不支持ext4的。不过,后面可以让它支持)。我下载的是插件版的。如果是ide版本的,安装过程请google一下~

2. 打开下载的zip压缩包,将里面的plugins和features目录下的内容分别解压缩到Myeclipse的相应目录中。打开Myeclipse查看菜单windows->preferences里面是否出现了spket项。如果出现,跳转到步骤4. 否则,执行3.

3. 打开Myeclipse目录:configuration\org.eclipse.equinox.simpleconfigurator\bundles.info,添加下面内容:

com.spket.as.core,1.6.17,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.as.core_1.6.17.jar,4,false
com.spket.awt,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.awt_1.6.6.jar,4,false
com.spket.core,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.core_1.6.18.jar,4,false
com.spket.dtd,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.dtd_1.6.6.jar,4,false
com.spket.extjs,1.6.17,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.extjs_1.6.17.jar,4,false
com.spket.grammars,1.6.9,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.grammars_1.6.9/,4,false
com.spket.js.debug,1.6.16,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.js.debug_1.6.16.jar,4,false
com.spket.js.xpc,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.js.xpc_1.6.6.jar,4,false
com.spket.js,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.js_1.6.18.jar,4,false
com.spket.laszlo,1.6.17,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.laszlo_1.6.17.jar,4,false
com.spket.mime,1.6.8,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.mime_1.6.8.jar,4,false
com.spket.mxml,1.6.15,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.mxml_1.6.15.jar,4,false
com.spket.scintilla.win32,1.6.18,file:/D:/Java/MyEclipse 8.5/
Common/plugins/com.spket.scintilla.win32_1.6.18.jar,4,false
com.spket.sted.win32,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/
plugins/com.spket.sted.win32_1.6.18.jar,4,false
com.spket.sted,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.sted_1.6.18.jar,4,false
com.spket.svg,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.svg_1.6.6.jar,4,false
com.spket.swt,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.swt_1.6.18.jar,4,false
com.spket.theme,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.theme_1.6.18.jar,4,false
com.spket.ui,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.ui_1.6.18.jar,4,false
com.spket.widget.win32,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.widget.win32_1.6.18.jar,4,false
com.spket.widget,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.widget_1.6.18.jar,4,false
com.spket.wpfe,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.wpfe_1.6.6.jar,4,false
com.spket.xml,1.6.17,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.xml_1.6.17.jar,4,false
com.spket.xul,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.xul_1.6.6.jar,4,false
com.spket.yuic,1.6.18,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.yuic_1.6.18.jar,4,false
com.spket.ywt,1.6.6,file:/D:/Java/MyEclipse 8.5/Common/plugins/
com.spket.ywt_1.6.6.jar,4,false
org.apache.xerces,2.8.0.v200705301630,file:/D:/Java/MyEclipse 8.5/Common/plugins/
org.apache.xerces_2.8.0.v200705301630.jar,4,false
org.apache.xml.resolver,1.1.0.v200705310020,file:/D:/Java/MyEclipse 8.5/Common/plugins/
org.apache.xml.resolver_1.1.0.v200705310020.jar,4,false

4. 这个时候,重启Myeclipse,windows->preferences菜单里面应该会出现spket项。打开JavaScript Profiles,点击NEW,输入ExtJS点”OK”.

5. 选择ExtJS, 点"Add Library", 在弹出窗口中选择"ExtJS".
6. 选择ExtJS, 点"Add File", 找到ext.jsb2. wait a minute, ext4.0里面没有这个文件,好吧,我承认,
这个其实是以前的3版本里面的。而最新的ext4.1里面包含了一个名称为sdk.jsb3的文件。可是……现在安装的旧的spket
不认可。
7. 好的。你可以去这里
http://forums.spket.com/viewtopic.php?f=6&t=1866&sid=5808bd4c60df7e15e8a7c2e87f0191ed
下载spket支持ext4的jar包和jsb文件。
下载 http://www.agpad.com/downloads/com.spket.js_1.6.18.jar 覆盖Common\plugins目录下的jar;
下载http://www.agpad.com/downloads/ext.jsb2 放到刚才的ext.jsb2文件所在位置或者wherever。
8. 怎么样,现在可以在windows->preferences->spket->JavaScript Profiles里面添加了吧。
把刚下载的ext.jsb2添加上并选择下面所有复选框。同样方式添加ext4里面的ext-all.js和ext-all-debug.js
9. 设置js默认打开方式:1、 Window → Preferences → General→ Editors→ File Associations
Associations editors 更改为Spket JavaScript Editor (把spket设为js默认的编辑器)
//参考资料:
1)http://hi.baidu.com/lyw596517091/blog/item/c5314f6f2977cbe8f636545c.html
2)http://www.caohaifeng.com/code/java/myeclipse-spket-2.html
3)http://forums.spket.com/viewtopic.php?f=6&t=1866&sid=5808bd4c60df7e15e8a7c2e87f0191ed
This entry was posted in Computer, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s