Rich Ajax Platform (RAP)      

RAP 1.2 M2 - New and Noteworthy

Here are some of the more noteworthy things that are available in the milestone build M2 (October 8, 2008) which is now available for download.

This list shows all bugs that were fixed during this milestone.


RWT

JavaScript Compression The new implementation of Javascript compression is now available. It is enabled by default, when you use the "Standard" client-side library variant.

To disable Javascript compression switch to the "Debug" library variant, which sets the system property org.eclipse.rwt.clientLibraryVariant to DEBUG for the VM that is being launched.

The total size of the index page was reduced by more than 20%.

For more information please also read the comments on this bug.

Cursor Support The Control cursor support is now available. It is fully implemented in the following widgets:
  • Button
  • Label
  • CLabel
  • List
  • Composite
  • Canvas
  • Combo
  • Text
  • Spinner
  • Scale

To obtain an instance of org.eclipse.swt.graphics.Cursor, you should use code like this:

Cursor cursor = Graphics.getCursor( SWT.CURSOR_CROSS );
control.setCursor( cursor );


As with all resources in RWT, the Cursor instances are shared among sessions. That's why, there is no Cursor#dispose() method available.

Scale Widget Now there exists a Scale widget that works much the same as in SWT.

DateTime Widget The long awaited DateTime widget is now available. Using the style flags SWT.DATE, SWT.TIME, SWT.CALENDAR and SWT.SHORT, SWT.MEDIUM, SWT.LONG you can switch the widget mode. Additionally the DateTime widget goes by the locale from RWT#getLocale() to display the day and month names in your preferred language.

ExpandBar Widget RWT provides an ExpandBar control. It can be used to represent a category or group of elements. You may have a look at the org.eclipse.rap.demo.controls.ExpandBarTab class in the demo plug-in to see how to use it.

MessageBox With a standard SWT MessageBox you can display a message dialog without using JFace.

The same style flag combinations like in SWT are available:
  • SWT.OK
  • SWT.OK | SWT.CANCEL
  • SWT.YES | SWT.NO
  • SWT.YES | SWT.NO | SWT.CANCEL
  • SWT.RETRY | SWT.CANCEL
  • SWT.ABORT | SWT.RETRY | SWT.IGNORE