RAP 1.2 M5 - New and Noteworthy

Here are some of the more noteworthy things that are available in this milestone build which is now available for download.

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

 


Common

com.ibm.icu.base ICU4J is a set of Java libraries that provides comprehensive support for Unicode, software globalization, and internationalization. These libraries are packaged in the plug-in com.ibm.icu (about 3MB in size)

Several plug-ins like Workbench, Forms, and JFace Databinding make use of these libraries and so do the respective RAP apdoptions.

As of this milestone, RAP uses the Replacement Plug-in com.ibm.icu.base (about 100KB in size) in order to reduce the overall size of the target platform by almost 3MB.

Since all dependencies on ICU4J are expressed by Import-Package declarations, the replacement plug-in can be easily "re-replaced" if necessary.

 


RWT

ColorDialog SWT's ColorDialog has been implemented for RWT.

ColorDialog dialog = new ColorDialog( shell );
RGB result = dialog.open();

 

Button widget The Button widget has been reworked. Now there are custom implementations for check boxes and radio buttons The new features are:
  • The method Button#setGrayed() is implemented for a check box behavior that works much the same as in SWT.
  • Hover state is implemented for both radio and check buttons.
  • Images are used for check and radio icons and can be defined via theming for the default, selected, hover and grayed (only check box) state. These are examples for setting the state images for the default state of a radio button and for the combined selected and grayed state of a check button:
    Button-RadioIcon {
      background-image: url( resource/widget/rap/button/radio-unselected.png );
    }
    
    Button-CheckIcon:selected:grayed {
      background-image: url( resource/widget/rap/button/check-grayed.png );
    }
    
  • The Button#setImage() method now works as in SWT.
  • Themeable System Images The system images used for SWT MessageBox and JFace MessageDialog can now be customized via theming. These images can also be acquired from Display#getSystemImage().
    
    Display {
      rwt-error-image: url( /theme1/icons/dialog/error.png );
      rwt-information-image: url( /theme1/icons/dialog/information.png );
      rwt-warning-image: url( /theme1/icons/dialog/information.png );
      rwt-question-image: url( /theme1/icons/dialog/question.png );
      rwt-warning-image: url( /theme1/icons/dialog/warning.png );
    }
              

     


    The above features are just the ones that are new since the last milestone build. Summaries for earlier builds: