您的位置:首页 > 其它

ATF安装(转)

2009-04-04 16:51 148 查看


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 步骤:

下载 XULRunner 包: Win32 or Linux

把 XULRunner 包解压到某一路径(例如, C:/XULRunner).

转到Win32的解压路径(例如, C:/XULRunner).

卸载以前版本的xulrunner.

已为所有用户注册:
Win32:
xulrunner --unregister-global

Linux:
sudo ./xulrunner --unregister-global


仅已为当前用户注册:
xulrunner --unregister-user


使用新的 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: