论坛首页 Web前端技术论坛

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

浏览 25359 次
精华帖 (0) :: 良好帖 (7) :: 新手帖 (8) :: 隐藏帖 (1)
作者 正文
   发表时间:2010-12-07  
最近有事比较忙,突然上了网就发扬一下程序员精神,分享一下多年来在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
   发表时间:2010-12-07  
点击查看图片可以看到效果,有图有真相。
0 请登录后投票
   发表时间:2010-12-07  
jquery的提示出不来,只有纯javascript的提示,楼主请指示下
0 请登录后投票
   发表时间:2010-12-07  
swp 写道
jquery的提示出不来,只有纯javascript的提示,楼主请指示下


1、请先确定你的插件以link方式加载成功,并用激活工具激活完成;

2、如果插件加载成功的话会在myeclipse的  window->preferences里出现aptana节点,展开该节点:
   aptana->Editors->javascript->Code Assist下勾上jQuery。
3、工作区切换到aptana,新建一个default web project,输入工程名,点击next,然后在出来的js框架中选择jQuery,一路next到完成。

4、在index.html中引入对应工程lib目录下的jquery,然后写个demo看下效果。

5、若这些没有问题的话再切换到j2ee模式调整一下就OK了。
0 请登录后投票
   发表时间:2010-12-07  
netbeans6.9.1 我好像已经可以支持这个了
0 请登录后投票
   发表时间:2010-12-08  
bitray 写道
netbeans6.9.1 我好像已经可以支持这个了

BIT又来宣扬netbeans了~~~
0 请登录后投票
   发表时间:2010-12-08  
遇到一个很郁闷的问题,我用的是 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)


0 请登录后投票
   发表时间:2010-12-08  
装aptana studio 有点费劲··
直接装 spket ide 就行了...
0 请登录后投票
   发表时间:2010-12-08  
css 提示 unknown dimension 这个错误是怎么回事?
0 请登录后投票
   发表时间:2010-12-08  
很好,以前我尝试安装多次都没装成功,这篇介绍的很详细
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics