Eclipse RAP 2.2 (Rich Ajax Platform) 發布

jopen 11年前發布 | 16K 次閱讀 Eclipse RAP

Eclipse RAP (Rich Ajax Platform) 項目的目的是讓開發人員能夠利用Eclipse開發模型來構建Rich,Ajax-enabled Web應用程序。主要運用著名的Eclipse平臺擴展點插件機制和一個包含SWT/JFace API的widget工具包。

1 基本概念 

    RAP可以讓開發人員使用JAVA API和按照Eclipse 插件的開發模式構建基于AJAX的Web 2.0應用程序, RAP的工作原理是采用交叉編譯的方式將Java 代碼生成html、JavaScript和CSS文件,底層基于Qooxdoo AJAX框架,這樣,我們就不必接觸JavaScript、CSS和處理Http的細節了,可以讓我們更關心程序的功能實現。 

2 與rcp的關系   

    RAP和RCP 一樣,運行在Equinox框架上,Equinox是OSGI R4規范的實現,是一個非常優秀和成熟的OSGi框架,Eclipse 是通過這個框架實現靈活的擴展性和插件的熱部署。RAP也支持Eclipse的大部分擴展點,其實RAP和RCP在架構上非常的類似,下圖分別為RCP和 RAP的架構圖 

  


Eclipse RAP 2.2 (Rich Ajax Platform) 發布  

可以看出,這之間的整體架構差別不大,RCP是基于SWT的,RAP是基于RWT的,RWT是實現了SWT功能的一個子集。其實這之間的使用方式都差不多。比如RWT也能和SWT一樣使用MVC的方式來創建表格。

Looking back on another eventful year for the RAP project, today we’re proud to publish the results in a new release, RAP 2.2. Let’s have a look at the highlights:

Client-side Scripting

We started off the work on RAP 2.2 with integrating the ClientScripting from the Incubator project into RWT. With this new feature, you can now attach scripted listeners to a widget. Those listeners are directly executed on the client, allowing for immediate feedback. This is particularly useful for validation of user input. You can see the difference in our online example.

Modernized ToolTips

In the second milestone, we focused on improving the user experience of tooltips in RWT. Tooltips can now point to the widget they annotate and are positioned relative to this widget, not to the mouse position.

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

The pointer images can be adjusted by new theming properties. In addition to the new look, we also fine-tuned the behavior of tooltips. They come up quicker and do not vanish until the mouse pointer is moved. Moreover, tooltips can now also contain markup:

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

Row Templates

SWT provides tree and table widgets to display data, but nothing that compares with styled lists known from mobile interfaces. We decided to make those modern UIs possible in RAP anyway. Instead of creating a custom widget with a new API, we came up with a template API that lets you change the item presentation of existing tree and table widgets. A row template applies to every row of a table and defines text and image cells that can be freely arranged.

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

With this API, you can re-use existing SWT and JFace code and just define a new presentation. This feature is also already available in the latest version of Tabris, our RAP-based platform for Android and iOS.

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

News from the RAP Incubator

The RAP Incubator project is a place where new features and add-ons for RAP are being developed. Two new components have been added recently that are worth mentioning. The Auto suggest component allows to attach type-ahead search to an existing text field

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

and the rich text editor for RAP is now also part of the RAP Incubator project.

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

Last but not least, the FileDialog has been polished and supports multi-file selection now.

Eclipse RAP 2.2 (Rich Ajax Platform) 發布

Download

RAP 2.2 is available on the download page as p2 repositories and as zip files. The core libraries rwt, rwt.osgi, and rap.jface can also be found on Maven Central.

You can find a more detailed list of changes in the RAP 2.2 New and Noteworthy.

Thanks to the RAP committers and to all contributors who helped with this release by testing, discussing, and pointing out problems early. We wish you all a relaxing X-mas vacation and look forward to another great year with RAP. The next release will be RAP 2.3 in June 2014.

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!