December 07, 2007
The new Eclipse Rich AJAX Platform (RAP) is a server-side platform that multiple concurrent users can access via their browsers and Eclipse RCP developers can learn in no time. by Ricardo Govoni
The recently launched Eclipse Rich Ajax Platform (RAP) is another component of the ever-increasing Eclipse ecosystem. Its purpose, as explained on the Eclipse RAP website, is simple: "The RAP project enables developers to build rich, Ajax-enabled Web applications by using the Eclipse development model, plug-ins with the well known Eclipse workbench extension points, and a widget toolkit with SWT API."
Eclipse RAP delivers this functionality to enable a three-pronged vision:
The final result offers two main advantages for the developer and the user:
RAP, RCP—What's the Difference?
The main difference between Eclipse RAP and Eclipse RCP is RAP's use of RWT(RAP Widget Toolkit), which is a replacement for SWT (Standard Widget Toolkit). SWT defines all the UI widget and primitives of an RCP application (buttons, labels, and so on) with native widgets of the underlying client operating system. Conversely, RWT defines all the UI elements as web primitives: HTML form elements, input texts, HTML buttons, and all the JavaScript needed to animate them appropriately.
More precisely, RWT renders the widgets by pushing instructions to the browsers, where they are are interpreted by qooxdoo a specialized JavaScript library. By executing on the browser, qooxdoo draws the UI, responds to events, and propagates events back to the server. Figure 2 shows the technical differences between an RCP application and a RAP one.