RAP是一个Eclipse的项目,可以让SWT运行在WEB上。官网地址:https://eclipse.dev/rap/。
下面的XML就是一个SWT模型的示例,它已经放在了XWorker的网址上了,可以点击这里运行该模型, 运行后会打开一个窗口,窗口中有一个显示XWorker主页的浏览器。
<?xml version="1.0" encoding="utf-8"?>
<Shell name="shell" text="Hello World!" descriptors="xworker.swt.widgets.Shell"
width="800" height="600">
<FillLayout name="FillLayout"></FillLayout>
<Browser name="Browser" url="https://www.xworker.org"></Browser>
</Shell>
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号