RAP插件手动“安装”

rap是一个类似rcp的框架,使用类似于rcp(rich client platform)的接口。然后,编写出来的应用是运行在浏览器中的,rap的全称为rich ajax platform(官网是解释是remote appliation platform)。

 

1、下载RAP

· 为了方便我这里直接下载一个RAP Runtime版本的Eclipse, http://www.eclipse.org/downloads/ (Eclipse Juno (4.2) SR1Eclipse for RCP and RAP Developers 版本)

· http://www.eclipse.org/rap/downloads/1.5/  Release 1.5 June 27, 2012  Tooling  Runtime

 

++注意: 下载后,不能直接放置到dropins目录下(http://wiki.eclipse.org/Equinox/p2/Getting_Started)。

因为rap和rcp使用的类似的接口,org.eclipse.rap.ui以及org.eclipse.rap.ui.views重写了RCP_UI很多的handler和views。如果直接放置到plugins后,会导致eclipse不能使用!!

 

http://eclipsesource.com/blogs/2012/03/15/publishing-negative-requirements/

写道
A useful example of a negation requirement comes to mind when you think of RAP (the Rich Ajax Platform). RAP is not intended to be installed into your IDE, but rather it’s meant to be installed in your target platform and deployed into a run-time environment. If you do install RAP into your IDE then you’re asking for trouble (since RAP is an alternate replacement for SWT, your widget library). RAP has traditionally used some pretty hacky work-arounds to ensure that it won’t be installed in the IDE.

 

2、 配置RAP运行环境

通过改变目标平台的方式来添加RAP的插件。

1>  解压并运行eclipse

2>  通过菜单Window->Preferences->Plug-in Development-> Target Platform,打开目标平台的对话框。

3>  为目标平台添加tooling和runtime的插件。

+注意: runtime插件里面的osgi和eclipse.core.*插件已经删除(和eclipse自带的插件冲突)。



 
>>注意:可以把这个target-platform保存为一个文件(eclipse很多都可以从文件而来,target, product, launch...)。

 

 3、测试

把RAP的demo导入到Workspace,运行里面的“Controls Demo.launch”

1> 以source project的方式导出RAP-DEMO到工作空间:



 

2> 运行Control DEMO


 

3> 查看结果


 

    感觉还是挺有想法的,通过rcp的编程方式,写出web的应用。

 

源码Source: 

http://eclipse.org/rap/source/

https://github.com/eclipse/rap

https://github.com/eclipse/rap.tools

 

参考:

r1: rap发布到tomcat

http://developer.51cto.com/art/200907/137284.htm

r2: 使用update的方式安装

http://vwpolo.iteye.com/blog/387188

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值