RAP 2.x, Top Eclipse Kepler Feature #4

As we approach the release of Eclipse Kepler, I’m counting down the Top 10 Features I’m most excited about. Number 4 on my list is RAP 2.x. Powerful, stable and well thought-out APIs is a common theme among Eclipse projects. From the early days of Eclipse, there has always been a focus on API development and RAP continues exemplifies this.

During the past year, RAP has moved away from simply being a Rich Ajax Platform to being a general Remote Application Platform. This means that RAP is a general platform for developing modern UIs,and serving them natively on a variety of different devices through the use of an Open Protocol. The open-source web based client is still available, but other clients are now being added, such as: commercial clients for Android and iOS devices.

tabris mdevices RAP 2.x, Top Eclipse Kepler Feature #4

In February RAP shipped version 2.0, and with Kepler, version 2.1 will land. With the RAP 2.x major release, the client-server protocol was finally standardized and all communication is now done using a JSON protocol. A number of new APIs were also released, including an API for creating custom widgets, an API for executing arbitrary JavaScript on the client, and an updated API for entry points and branding.

In Kepler, RAP has added Mnemonic and Accelerator support. This allows users to select and execute actions using keyboard short-cuts.

Screen Shot 2013 06 17 at 10.41.58 PM RAP 2.x, Top Eclipse Kepler Feature #4

The GraphicsContext (GC) has been enhanced with GC.drawPath and GC.fillPath. With this API, you can now draw complex shapes such as quadratic or bezier curves. As Ivan showed us, you even draw an airplane.

jet RAP 2.x, Top Eclipse Kepler Feature #4

RAP 2.x now supports multi-tabs. Until now, you had to turn off session cookies in the servlet container in order to support access to a RAP application from multiple browser tabs. This is not needed anymore. The framework can now handle multiple connections from within the same HTTP session. For every connection, a new UISession will be created.

Screen Shot 2013 06 17 at 10.50.27 PM RAP 2.x, Top Eclipse Kepler Feature #4And finally, RAP Tools has been updated and will ship with Kepler. You should install these tools in your IDE when developing RAP applications to give yourself a productivity boost. RAP tools will help you manage your target, create sample projects and launch your RAP applications.

For my Eclipse Kepler Top 10 and other Tips and Tricks, follow me on twitter.

2 Responses to “RAP 2.x, Top Eclipse Kepler Feature #4”

  1. Vijay Raj says:

    Nice…

    The GC support is the most important milestone.

    One clarification though, i guess still no support for E4 application.

  2. Ian Bull says:

    You are correct, there is no e4 application support. However, the other extreme (RAP without any workbench support) has been improved. You can use RAP standalone as a simple web-based widget toolkit. You can use this with or without OSGi.

2 responses so far

Written by . Published in Categories: EclipseSource News, Editors choice, Planet Eclipse

Author:
Published:
Jun 18th, 2013
Follow:

Twitter LinkedIn Google+ GitHub