Difference between revisions of "Rap10M2 News"

From Eclipsepedia

Jump to: navigation, search
(RWT)
(RWT)
Line 43: Line 43:
 
|width="80%"|Now there exists a <code>Spinner</code> widget that works much the same as in SWT.
 
|width="80%"|Now there exists a <code>Spinner</code> widget that works much the same as in SWT.
 
[[Image:RapSpinner.png]]
 
[[Image:RapSpinner.png]]
 +
|-valign="top" align="left"
 +
|width="20%"|'''Default Button'''
 +
|width="80%"|The default button was implemented, that You can now tell the Shell which of its buttons should behave as the default button. Just to have something to write for the next milestone news, the default button is not yet highlighted.
 
|}
 
|}
  
  
 
<!-- The above features are just the ones that are new since the previous milestone build. -->
 
<!-- The above features are just the ones that are new since the previous milestone build. -->

Revision as of 12:33, 1 March 2007

| RAP wiki home | RAP project home |

RAP 1.0 M2 - New and Noteworthy

Here are some of the more noteworthy things available in milestone build M2 which will be available for download on March 2, 2007. If You don't want to wait, all the listed features are available in CVS HEAD.

JFace

Dialogs The RAP JFace adaption now provides the class Dialog and friends.
  • InputDialog

RapInputDialog.png

  • MessageDialog

RapQuestionDialog.png

  • ErrorDialog

File:RapErrorDialog.png

Due to the distributed nature of RAP, the way how the result is passed back to the caller differs from JFace. RAP JFace provides an IWindowCallback interface whose windowClosed method is called with the returnCode as a parameter when a dialog was closed.


RWT

ModifyEvent RWT now supports the ModifyEvent. The two widgets that benefit from this are Text and Spinner.

Though implementing a ModifyListener does not differ from SWT as You can see below, the inner workings do differ. In contrary to SWT that sends a ModifyEvent immediately, RWT uses a delay of currently 500 ms after which the server is notified about changes.

  Text text = new Text( parent, RWT.SINGLE );
  text.addModifyListener( new ModifyListener() {
    public void modifyText( ModifyEvent event ) {
      // update model with changed text
    }
  } );

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

RapSpinner.png

Default Button The default button was implemented, that You can now tell the Shell which of its buttons should behave as the default button. Just to have something to write for the next milestone news, the default button is not yet highlighted.