code: public void enableToolbarButtons(boolean hasChanges, String noEditReason) {
  
          for (Widget button : m_toolbar.getAll()) {
              // enable all buttons that are not equal save or reset or the page has changes
              if (button instanceof I_CmsToolbarButton) {
                  ((I_CmsToolbarButton)button).setEnabled(true);
              }
          }
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(noEditReason)) {
              m_add.disable(noEditReason);
              m_clipboard.disable(noEditReason);
          }
  
          m_toolbar.setVisible(true);
      }
docs: Enables the toolbar buttons.<p>
  
  @param hasChanges if the page has changes
  @param noEditReason the no edit reason