/** * Opens this dialog in a non-blocking way and brings it to the front of the display. If given, * the <code>dialogCallback</code> is notified when the dialog is closed. * <p> * Use this method instead of the <code>open()</code> method from the respective * <code>Dialog</code> implementation when running in <em>JEE_COMPATIBILTY</em> mode. * </p> * * @param dialogCallback the callback to be notified when the dialog was closed or * <code>null</code> if no callback should be notified. * @see DialogCallback * @see org.eclipse.rap.rwt.application.Application.OperationMode * @rwtextension This method is not available in SWT. * @since 3.1 */ public void open( final DialogCallback dialogCallback ) { prepareOpen(); returnCode = SWT.CANCEL; shell.open(); shell.addShellListener( new ShellAdapter() { @Override public void shellClosed( ShellEvent event ) { if( dialogCallback != null ) { dialogCallback.dialogClosed( returnCode ); } } } ); }