code: public void showMenu(List<I_CmsContextMenuEntry> menuEntries) {
  
          if (!CmsClientCollectionUtil.isEmptyOrNull(menuEntries)) {
              // if there were entries found for the menu, create the menu
              m_menu = new CmsContextMenu(menuEntries, true, getPopup());
              // add the resize handler for the menu
              m_resizeRegistration = Window.addResizeHandler(m_menu);
              // set the menu as widget for the panel
              m_menuPanel.setWidget(0, 0, m_menu);
              if (m_menuCloseHandler != null) {
                  m_menuCloseHandler.removeHandler();
              }
              if (m_popupCloseHandler != null) {
                  m_popupCloseHandler.removeHandler();
              }
              // add the close handler for the menu
              m_menuCloseHandler = getPopup().addCloseHandler(new CmsContextMenuCloseHandler(m_menu));
              m_popupCloseHandler = getPopup().addCloseHandler(new CloseHandler<PopupPanel>() {
  
                  public void onClose(CloseEvent<PopupPanel> event) {
  
                      closeMenu();
                  }
              });
              m_popup.position();
          } else {
              m_menuPanel.setWidget(0, 0, m_noEntriesLabel);
              m_popup.position();
          }
      }
docs: Creates the menu and adds it to the panel.<p>
  
  @param menuEntries the menu entries