code: protected void cancelReplace() {
  
          m_canceled = true;
          if (m_progressInfo != null) {
              cancelUpdateProgress();
              CmsRpcAction<Boolean> callback = new CmsRpcAction<Boolean>() {
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
                   */
                  @Override
                  public void execute() {
  
                      getUploadService().cancelUpload(this);
                  }
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
                   */
                  @Override
                  protected void onResponse(Boolean result) {
  
                      hide();
                  }
              };
              callback.execute();
          } else {
              hide();
          }
      }
docs: Cancels the replace process.<p>