code: private void initContextMenu() {
  
          m_contextMenu.removeItems();
          MenuItem main = m_contextMenu.addItem("", null);
          main.setIcon(FontOpenCms.CONTEXT_MENU);
          main.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_MENU_TITLE_0));
          CmsContextMenuTreeBuilder treeBuilder = new CmsContextMenuTreeBuilder(getDialogContext());
          CmsTreeNode<I_CmsContextMenuItem> tree = treeBuilder.buildAll(
              OpenCms.getWorkplaceAppManager().getMenuItemProvider().getMenuItems());
          for (CmsTreeNode<I_CmsContextMenuItem> node : tree.getChildren()) {
              createMenuEntry(main, node, treeBuilder);
          }
      }
docs: Initializes the context menu entries.<p>