[醒目] ATF -- eclipse的AJAX插件安装指南 中国Eclipse社区 论坛

来源:百度文库 编辑:神马文学网 时间:2024/03/29 07:15:18
ATF -- eclipse的AJAX插件安装指南本帖被 yipsilon 设置为精华(2007-03-12)
我使用的是eclipse 3.2.1 release版本。
1、 首先当然是安装wtp插件了 毕竟是web开发咯!
准备工作先下载eclipse3.2.1   可以去 eclipse.org 下载
然后下载安装 wtp 1.5.3 版本
http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R1.5/R-1.5.3-200702082048/wtp-R-1.5.3.zip&url=http://download.actuatechina.com/eclipse/webtools/downloads/drops/R1.5/R-1.5.3-200702082048/wtp-R-1.5.3.zip&mirror_id=385
根据插件依赖关系下载
The EMF driver used in this build is emf-sdo-xsd-SDK-2.2.2.zip
http://download.eclipse.org/modeling/emf/emf/downloads/drops/2.2.2/R200702131851/emf-sdo-xsd-SDK-2.2.2.zip
The GEF driver used in this build is GEF-SDK-3.2.2.zip
http://download.eclipse.org/tools/gef/downloads/drops/R-3.2.2-200702081315/GEF-SDK-3.2.2.zip
Java EMF Model Runtime driver used in this build is JEM-SDK-1.2.3_jem.zip
http://download.eclipse.org/tools/ve/downloads/drops/R-1.2.3_jem-200701301117/JEM-SDK-1.2.3_jem.zip
这样 wtp 就安装完了 可以启动一下eclipse看看是否工作正常,如果插件出不来可以使用 -clean 参数
2、 主角登场
下载ATF插件
http://www.eclipse.org/downloads/download.php?file=/webtools/atf/atf-0.2.1-v200702271030.zip&url=http://download.actuatechina.com/eclipse/webtools/atf/atf-0.2.1-v200702271030.zip&mirror_id=385
下载XULRunner
ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/contrib/2007-02-02-1.8.1.2pre/xulrunner-1.8.1.2pre.en-US.win32.zip
然后把XULRunner解压到一个文件夹中
执行:  xulrunner --register-global
注意:
Quote:
Uninstall any previous version of Mozilla xulrunner.
If registered for all users:
xulrunner --unregister-global
If registered only for current user:
xulrunner --unregister-user
Register XULRunner by executing either of the following at the command line:
Register for all users:
xulrunner --register-global
Register only for current user:
xulrunner --register-user
接下来启动eclipse
选择 Help -> Software Updates -> Find and Install...
Search for new features to install
Next
New Archived Site...
把下载下来的ATF插件文件指定好
finish 就开始安装ATF插件了
安装好后会提示你重新启动eclipse 我们重新启动,如果出不来请使用 -clean 插件
接下来对插件进行配制:
Quote:
Configuring Dojo
This step is only required if you plan to use the Dojo Toolkit
More detail instructions on how to configure Dojo is available in the AJAX Toolkit Framework User Guide in the Eclipse Help
1. Download Dojo and extract into a directory fromhttp://dojotoolkit.org/download/
2. Define the location of Dojo using the preference pages.
From the Window menu item open the ATF preference page for defining Ajax runtimes
Window>>Preferences>>ATF>>Installed Ajax Runtimes
Select the "Add.." button and define the runtime. The location specified is the directory containing the dojo.js file.
Use the "Set as default" button to make location the default to use.
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.
Configuring Script.aculo.us
This step is only required if you plan to use the Script.aculo.us Toolkit
More detail instructions on how to configure Script.aculo.us is available in the AJAX Toolkit Framework User Guide in the Eclipse Help
1. Download Script.aculo.us and extract into a directory fromhttp://script.aculo.us
2. Define the location of Script.aculo.us using the preference pages.
From the Window menu item open the ATF preference page for defining Ajax runtimes
Window>>Preferences>>ATF>>Installed Ajax Runtimes
Select the "Add.." button and define the runtime. The location specified is the directory containing the runtime files.
Use the "Set as default" button to make location the default to use.
Configuring Rico
This step is only required if you plan to use the Rico Toolkit
More detail instructions on how to configure Rico is available in the AJAX Toolkit Framework User Guide in the Eclipse Help
Download rico.js and prototype.js into a directory from [url=http://openrico.org/rico/downloads.page ]http://openrico.org/rico/downloads.page [/url]
Define the location of rico.js and prototype,js using the preference pages.
From the Window menu item open the ATF preference page for defining Ajax runtimes
Window>>Preferences>>ATF>>Installed Ajax Runtimes
Select the "Add.." button and define the runtime
Use the "Set as default" button to make location the default to use.
Note: this has only been tested with prototype 1.4.0 and rico 1.1.2
一篇是用该插件创建AJAX应用的step by step详细指导,相信看了之后大家会豁然开朗的
http://www.ibm.com/developerworks/cn/opensource/os-ecl-atf/index.html
flash: http://www.eclipse.org/atf/flash/flashFiles/firstdojoproject.swfflash: http://www.eclipse.org/atf/flash/flashFiles/firstdojoproject.swf