Eclipse ATF(AJAX Toolkit Framework) 安装总结

Eclipse ATF(AJAX Toolkit Framework) 安装总结
今天花了大半天安装ATF来使用dojo,现把安装的一些步骤和心得罗列如下:

AJAX Toolkit Framework(下面简称ATF)为 Eclipse 提供 Ajax 支持,其绑定当下最流行的 AJAX 框架(Dojo, Zimbra, Rico, etc),为 Eclipse 提供整合的模块。Eclipse 用户可以使用 AJAX Toolkit Framework 来编写 AJAX 应用程序。就像在 Eclipse 中开发平常的Java 程序一样,非常方便。

需要:
1、Eclipse SDK 3.2 http://www.eclipse.org/downloads/
2、Eclipse Web Tools Project (WTP) 1.5 (and prerequisites)
http://download.eclipse.org/webtools/downloads/
3、Sun Java 1.4.2 JDK(或更高)
4、Tomcat 5 或以上 或其他WTP支持的Http服务器
5、XULRunner 步骤:
  1. 下载 XULRunner 包: Win32 or Linux
  2. 把 XULRunner 包解压到某一路径(例如, C:\XULRunner).
  3. 转到Win32的解压路径(例如, C:\XULRunner).
  4. 卸载以前版本的xulrunner.
    • 已为所有用户注册:
      Win32: xulrunner --unregister-global
      Linux: sudo ./xulrunner --unregister-global
    • 仅已为当前用户注册:
      xulrunner --unregister-user
  5. 使用新的 XULRunner 注册:
    • 为所有用户注册:
      Win32: xulrunner --register-global
      Linux: sudo ./xulrunner --register-global
    • 仅为当前用户注册:
      xulrunner --register-user
6、下载ATF(目前最新版本0.4.0)
   

Windows Downloads

  • 0.1-20061115 binary download
  • 0.1-20061115 SDK download (binary with source)

Linux Downloads

  • 0.1-20061115 binary download
  • 0.1-20061115 SDK download (binary with source)

Installation Instructions

下载ATF完成后,按照以下的步骤安装ATF:

  • 打开Eclipse, 选择 Help -> Software Updates -> Find and Install...
  • 选择Search for new features to install
  • 选择 Next
  • 选择 New Archived Site...
  • 选择 the location of the downloaded update site zip file
  • 选择 Finish
  • 确保所有的 ATF features 都被选择
  • 按照以后推荐的操作安装ATF

重要的必须的步骤

为了获得ATF的全部功能,有三部份组件应该加入到ATF的包里.

在 Eclipse 的plugin下的org.eclipse.atf.personality.rico.runtime 文件夹下:

  • 打开 resources/ 路径
    • 加入 prototype.js
    • 加入 rico.js

注意: prototype.js 和 rico.js 从这里 http://openrico.org/rico/downloads.page 获得
注意: this has only been tested with prototype 1.3.1 and rico 1.1-beta2


在 Eclipse 的plugin下的 org.eclipse.atf.personality.dojo.runtime 文件夹下:

  • 打开 resources/ 路径
    • 解压dojo
    • 拷贝 dojo-<version>-ajax/ 下的所有文件到org.eclipse.atf.personality.dojo.runtime 下的resources/路径下.
    • Note: At the end, the plugin's resource/ directory should at least contain the src/ directory from the Dojo download.

Note: Dojo 从这里 http://dojotoolkit.org/download/获得
Note: The ATF javascript validator will flag a few of the base Dojo javascript source files as having errors. These "errors" can be ignored and should not cause any break in Dojo functionality.


在 Eclipse 的plugin下的 org.eclipse.atf.javascript.jslint 文件夹下:

  • 加入 jslint.js 到 resources/ 路径下

Note:jslint.js 从 这里 http://www.jslint.com/fulljslint.js 获得

一旦ATF 安装完毕,必须使用clean 参数来重新启动Eclipse.

开发dojo应用: 见 http://www.eclipse.org/atf/flash/index2.php
调试dojo应用: 见 http://www.eclipse.org/atf/flash/index4.php

你可能感兴趣的:(Eclipse ATF(AJAX Toolkit Framework) 安装总结)