`
mmtye
  • 浏览: 7574 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类

让Myeclipse支持jQuery、Ext等主流框架自动完成、调试功能

阅读更多
最近有事比较忙,突然上了网就发扬一下程序员精神,分享一下多年来在myeclipse中支持jquery、ext、YUI、mooto等主流框架的自动完成、提示、调试等方法。百忙之中非常想念各位群友,MMT很快就会回来。以下着重介绍link方式安装,不推荐升级模式安装,升级安装会带来很多问题,并且尝尝安装不成功。

1、从http://update1.aptana.org/studio/3.2/024747/index.html下载aptana studio的eclipse插件  aptana_update_024747.zip

2、在D:\Myeclipse下创建myPlugins文件夹。 (我的myeclipse装在D盘)

3、在 D:\Myeclipse\eclipse\links 下创建一个link文件aptana.link,内容如下:path=D:\\Myeclipse\\myPlugins\\aptana

4、在 D:\Myeclipse\myPlugins中创建文件夹aptana,在这个aptana文件夹下创建名为eclipse的文件夹。

5、解压aptana_update_024747.zip,将解压出来的features、plugins两个文件夹复制到 D:\Myeclipse\myPlugins\aptana\eclipse里。

6、运行AptanaKeygen.exe,指定\plugins目录为:D:\Myeclipse\myPlugins\aptana\eclipse\plugins  点击OK。

7、启动Myeclipse,点击myeclipse->Preference->Aptana->License,继续点击Validate便激活成功。

8、为防止Myeclipse打开aptana主页时报错,做如下改动:
     打开myeclipse->Preference->Aptana->MyAptana/Message Center
     去掉 use fireFox as the Aptana Home Page Browser 前面的勾。

9、重启Myeclipse,能正常使用了。

10、禁用启动myeclipse时自动启动myaptana(这样就不拖速度了)

以上是给予Myeclipse 6.0GA(Eclipse 3.3.1)、Aptana Studio eclipse plugin 1.27;

Myeclipse 6.5和上面的方法是一样的。Myeclipse 7.0和以上版本需要最新的Aptana Studio版本(已开源不需要破解,之前版本需要破解后使用),基本的方法可以升级安装或者下载插件以link方式安装。
  • 大小: 16.8 KB
  • 大小: 100.3 KB
  • 大小: 35.6 KB
  • 大小: 38.1 KB
  • 大小: 7.8 KB
  • 大小: 7.5 KB
分享到:
评论
29 楼 chenxizhiyi 2011-01-19  
我装了这个之后,不知道为什么,会跟myeclipse里面的应用服务器冲突,我每次开机,都要重新配置一下tomcat。

PS:这个插件很好用
28 楼 andyjackson 2010-12-13  
Java_xiaohao 写道
bitray 写道
netbeans6.9.1 我好像已经可以支持这个了

BIT又来宣扬netbeans了~~~

27 楼 andyjackson 2010-12-12  
Java_xiaohao 写道
bitray 写道
netbeans6.9.1 我好像已经可以支持这个了

BIT又来宣扬netbeans了~~~

26 楼 javabkb 2010-12-12  
安装了一下,用着还行.谢了。
25 楼 mmtye 2010-12-10  
風一樣的男子 写道
记得 aptana 收费的吧


早就开源了,不收费的。
24 楼 風一樣的男子 2010-12-10  
记得 aptana 收费的吧
23 楼 take 2010-12-10  
弄个国外的代理IP就能下载了..
22 楼 rekoe.net 2010-12-10  
ruvuoai 写道
无法下载,现在好像不提供离线包了,直接用myeclipse的更新下载可是又加载不到插件源,我用的myeclipse8.6有没有对应eclipse版本的离线插件包分享下,ruvuoai@gmail.com

已经发到你的邮箱 请查收 里面有具体的安装方法
21 楼 mmtye 2010-12-10  
ruvuoai 写道
无法下载,现在好像不提供离线包了,直接用myeclipse的更新下载可是又加载不到插件源,我用的myeclipse8.6有没有对应eclipse版本的离线插件包分享下,ruvuoai@gmail.com


最新版本已经不提供离线下载,只能升级,不过升级也试过几次,有个诀窍,就是在升级列表中只选择aptana studio(也许是aptana ide忘了),其余的不要选,这样升级的时候不会出错,后续的配置跟离线的ide配置一样的,祝你成功哈。
20 楼 clue 2010-12-09  
大部工作是做JS开发,个人比较偏向Spket,其它的那些都太重量级了。

JS的语法提示什么的对我来说比较浮云,用的是Ext,做了大量扩展。
而IDE还没有做到完美识别JS。毕竟这东西太灵活了,添加个属性都有好多种方法:o.a=xx, o['a']=xx, o[prop]=xx, Ext.apply(o, {}), Ext.override(O, {}) ...
jQuery开发应该用得上

调试直接FF+firebug上了,该有的功能都有了,还能调CSS什么的。IE下用VS & IE dev tool,chrome自带

看上的功能其实就几样:
语法高亮
变量高提示
代码块收缩
自动完成括号

还是看个人喜好了,现在eclipse就只装spket, svn, jslint,占用资源少(150M~300M),速度快,用起来舒心。

P.S. 曾经下载过eclipse for JS,结果CPU一直100%啊100%,500M+内存,然后马上bye bye
19 楼 ruvuoai 2010-12-09  
无法下载,现在好像不提供离线包了,直接用myeclipse的更新下载可是又加载不到插件源,我用的myeclipse8.6有没有对应eclipse版本的离线插件包分享下,ruvuoai@gmail.com
18 楼 rekoe.net 2010-12-09  
myeclipse9.1里面已经有了 需要手动安装一下 今天了了下soft center 中才发现的
不过 现在还不晓得怎么设置 可以支持调试的时候使用多种浏览器 现在发现默认的只是IE
17 楼 Leon.Wood 2010-12-09  
貌似最新版的已经都集成好了吧
16 楼 mmtye 2010-12-09  
mmtye 写道
skzr.org 写道
witcheryne 写道
装aptana studio 有点费劲··
直接装 spket ide 就行了...


曾经使用过所谓的aptach studio,发现非常的慢,而且很多错误,放弃了

现在一直在使用spket plugin,赞一个!



spket ide 本人用过,个人喜好罢了,这个spket远远不及aptana,还有就是说aptana慢,这是你没有我说的那样启动时禁用加载,只是用到的时候会自动启用所需功能而不是加载整个核心。


补充一下哈,这里所说的是aptana的eclipse插件,并非aptana studio本身,aptana studio启动确实慢,这个我承认,如果装的eclipse的插件并且禁用myeclipse启动时加载aptana主页的话对你的myeclipse的启动几乎没有影响。
15 楼 mmtye 2010-12-09  
rekoe.net 写道
css 提示 unknown dimension 这个错误是怎么回事?


这个问题我还没有遇到,我很少写CSS,注意一下在写CSS的时候在代码提示的同时会提示该语法支持的浏览器类型和版本,如果没发现就请调整一下IDE吧。
14 楼 mmtye 2010-12-09  
witcheryne 写道
装aptana studio 有点费劲··
直接装 spket ide 就行了...


肉肉的问一下,spket能调试复杂的jQuery code吗?比如加载一个基于jQuery的框架(用aptana你会发现调试将非常简单)
13 楼 mmtye 2010-12-09  
skzr.org 写道
witcheryne 写道
装aptana studio 有点费劲··
直接装 spket ide 就行了...


曾经使用过所谓的aptach studio,发现非常的慢,而且很多错误,放弃了

现在一直在使用spket plugin,赞一个!



spket ide 本人用过,个人喜好罢了,这个spket远远不及aptana,还有就是说aptana慢,这是你没有我说的那样启动时禁用加载,只是用到的时候会自动启用所需功能而不是加载整个核心。
12 楼 mmtye 2010-12-09  
lqixv 写道
遇到一个很郁闷的问题,我用的是 myeclipse 6.6,按照你的介绍安装了之后,每次重启就出问题,myeclipse 干脆进不去了,提示让我去看日志(D:\MyEclipse6.5\eclipse\configuration下的:1291783681781.log),我把 myPlugins\aptana\eclipse\下的两个目录删除后,把安装包的两个目录重新解压进去后又可以启动 myeclipse 了。但再重启后又不行了。希望知道原因的帮下忙。
错误日志内容如下:
!SESSION 2010-12-08 12:48:01.218 -----------------------------------------------
eclipse.buildId=M20080221-1800
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-12-08 12:48:03.328
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.ui.ide.application was unable to load class org.eclipse.ui.internal.ide.application.IDEApplication.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:162)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:165)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
org.eclipse.core.runtime.CoreException[1]: java.lang.NullPointerException
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.setExportPackages(BundleDescriptionImpl.java:208)
at org.eclipse.osgi.internal.resolver.StateReader.readBundleDescriptionLazyData(StateReader.java:255)
at org.eclipse.osgi.internal.resolver.StateReader.fullyLoad(StateReader.java:608)
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.fullyLoad(BundleDescriptionImpl.java:456)
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.getResolvedRequires(BundleDescriptionImpl.java:167)
at org.eclipse.osgi.framework.internal.core.BundleLoader.<init>(BundleLoader.java:135)
at org.eclipse.osgi.framework.internal.core.BundleLoaderProxy.getBundleLoader(BundleLoaderProxy.java:56)
at org.eclipse.osgi.framework.internal.core.BundleHost.getBundleLoader(BundleHost.java:590)
at org.eclipse.osgi.framework.internal.core.BundleHost.checkLoader(BundleHost.java:196)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:223)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1269)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:165)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

!ENTRY org.eclipse.osgi 4 0 2010-12-08 12:48:03.359
!MESSAGE Shutdown error
!STACK 1
java.lang.NullPointerException
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.setExportPackages(BundleDescriptionImpl.java:208)
at org.eclipse.osgi.internal.resolver.StateReader.readBundleDescriptionLazyData(StateReader.java:255)
at org.eclipse.osgi.internal.resolver.StateReader.fullyLoad(StateReader.java:608)
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.fullyLoad(BundleDescriptionImpl.java:456)
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.getExportPackages(BundleDescriptionImpl.java:117)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.addReference(StateHelperImpl.java:260)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.buildReferences(StateHelperImpl.java:250)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.buildReferences(StateHelperImpl.java:244)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.sortBundles(StateHelperImpl.java:227)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.sortByDependencies(StartLevelManager.java:576)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.sortByDependency(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.getInstalledBundles(StartLevelManager.java:533)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:285)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:261)
at org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:188)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:622)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:525)
at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:399)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
!SESSION Wed Dec 08 12:48:03 CST 2010 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2010-12-08 12:48:03.359
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.setExportPackages(BundleDescriptionImpl.java:208)
at org.eclipse.osgi.internal.resolver.StateReader.readBundleDescriptionLazyData(StateReader.java:255)
at org.eclipse.osgi.internal.resolver.StateReader.fullyLoad(StateReader.java:608)
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.fullyLoad(BundleDescriptionImpl.java:456)
at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.getExportPackages(BundleDescriptionImpl.java:117)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.getExportedPackageMap(StateHelperImpl.java:74)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.getUnsatisfiedLeaves(StateHelperImpl.java:109)
at org.eclipse.osgi.internal.resolver.StateHelperImpl.getUnsatisfiedLeaves(StateHelperImpl.java:145)
at org.eclipse.core.runtime.adaptor.EclipseStarter.logUnresolvedBundles(EclipseStarter.java:438)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)




本人仅在myeclipse6.0和6.5上试过,都很成功,6.6这个版本确实没用过,你得首先确定插件对应的eclipse版本与你的myeclipse中的eclipse版本是否一致,如果你的eclipse版本不再该插件支持范围,则就试最新的aptana插件了。
11 楼 skzr.org 2010-12-08  
witcheryne 写道
装aptana studio 有点费劲··
直接装 spket ide 就行了...


曾经使用过所谓的aptach studio,发现非常的慢,而且很多错误,放弃了

现在一直在使用spket plugin,赞一个!
10 楼 rekoe.net 2010-12-08  
还有就是这个错误提示

too few values for the property %s 貌似是对-moz-border-radius:8px 不支持

相关推荐

Global site tag (gtag.js) - Google Analytics