code: public void disableEdit(String reason, boolean locked) {
  
          m_editButton.disable(reason);
          if (locked) {
              m_editButton.setImageClass("opencms-icon-lock-20");
          }
      }
docs: Disables the edit button with the given reason.<p>
  
  @param reason the disable reason
  @param locked <code>true</code> if the resource is locked