code: void confirmCancel() {
  
          if (m_saveButton.isEnabled()) {
              CmsConfirmDialog dialog = new CmsConfirmDialog(
                  org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_DIALOG_RESET_TITLE_0),
                  org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_DIALOG_RESET_TEXT_0));
              dialog.setHandler(new I_CmsConfirmDialogHandler() {
  
                  public void onClose() {
  
                      // nothing to do
                  }
  
                  public void onOk() {
  
                      cancelEdit();
                  }
              });
              dialog.center();
          } else {
              cancelEdit();
          }
      }
docs: Asks the user to confirm resetting all changes.<p>