/** * Makes the dialog visible and brings it to the front * of the display. * * <!-- Begin RAP specific --> * <p><strong>RAP Note:</strong> This method is not supported when running the application in * JEE_COMPATIBILITY mode. Use <code>Dialog#open(DialogCallback)</code> instead.</p> * <!-- End RAP specific --> * * @return the ID of the button that was selected to dismiss the * message box (e.g. SWT.OK, SWT.CANCEL, etc.) * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li> * </ul> * @exception UnsupportedOperationException when running the application in JEE_COMPATIBILITY mode * * @see org.eclipse.rap.rwt.application.Application.OperationMode * @see #open(DialogCallback) */ public int open() { checkOperationMode(); prepareOpen(); runEventLoop( shell ); return returnCode; }