code: public void openForTree(ItemClickEvent event, Tree tree) {
  
          fireEvent(new ContextMenuOpenedOnTreeItemEvent(this, tree, event.getItemId()));
          open(event.getClientX(), event.getClientY());
      }
docs: Opens the context menu of the given tree.<p>
  
  @param event the click event
  @param tree the tree