Package com.cedarsoft.spring.rcp.dialog

Examples of com.cedarsoft.spring.rcp.dialog.ExtendedConfirmationDialog


   * @throws CanceledException
   */
  protected boolean askForCommitConfirmation() throws CanceledException {
    final Boolean[] confirmed = {null};

    ExtendedConfirmationDialog dlg = new ExtendedConfirmationDialog( SpringSupport.INSTANCE.getMessage( "form.model.commit.title" ), null, SpringSupport.INSTANCE.getMessage( "form.model.commit.message" ) ) {
      @Override
      protected void onConfirm() {
        confirmed[0] = true;
      }

      @Override
      protected void onNo() {
        confirmed[0] = false;
      }
    };

    dlg.showDialog();

    if ( confirmed[0] == null ) {
      throw new CanceledException();
    } else {
      return confirmed[0];
View Full Code Here

TOP

Related Classes of com.cedarsoft.spring.rcp.dialog.ExtendedConfirmationDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.