/** * Makes the receiver 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 selected color, or null if the dialog was cancelled, no color * was selected, or an error occurred * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the * thread that created the receiver</li> * </ul> * @exception UnsupportedOperationException when running the application in JEE_COMPATIBILITY mode * * @see org.eclipse.rap.rwt.application.Application.OperationMode * @see #open(DialogCallback) */ public RGB open() { checkOperationMode(); prepareOpen(); runEventLoop( shell ); return rgb; }