code: public void addOptionBar(CmsContainerPageElementPanel element) {
  
          // the view permission is required for any actions regarding this element
          if (element.hasViewPermission()) {
              CmsElementOptionBar optionBar = CmsElementOptionBar.createOptionBarForElement(
                  element,
                  m_controller.getDndHandler(),
                  m_optionButtons);
              element.setElementOptionBar(optionBar);
          }
      }
docs: Adds an option bar to the given drag element.<p>
  
  @param element the element