@Override
    public void onReveal(final BeforeRevealMenubarEvent event) {
        super.onReveal(event);

//        final FutureImpl<List<Item>> future = new FutureImpl<>();
//        final List<ExplorerNode> selectedItems = getSelectedItems();
//        final boolean singleSelection = selectedItems.size() == 1;
//        final ExplorerNode primarySelection = getPrimarySelection();
//
//        fetchPermissions(selectedItems,
//                documentPermissionMap -> documentTypeCache.fetch(documentTypes -> {
//                    final List<Item> menuItems = new ArrayList<>();
//
////                    // Only allow the new menu to appear if we have a single selection.
////                    addNewMenuItem(menuItems,
////                            singleSelection,
////                            documentPermissionMap,
////                            primarySelection,
////                            documentTypes);
////                    menuItems.add(createCloseMenuItem(isTabItemSelected(selectedTab)));
//                    menuItems.add(createCloseAllMenuItem(isTabItemSelected(selectedTab)));
////                    menuItems.add(new Separator(5));
////                    menuItems.add(createSaveMenuItem(6, isDirty(selectedTab)));
//                    menuItems.add(createSaveAllMenuItem(8, hasSaveRegistry.isDirty()));
////                    menuItems.add(new Separator(9));
////                    addModifyMenuItems(menuItems, singleSelection, documentPermissionMap);
//
//                    future.setResult(menuItems);
//                }));
//
//        // Add menu bar item menu.
//        event.getMenuItems()
//                .addMenuItem(MenuKeys.MAIN_MENU, new IconParentMenuItem.Builder()
//                        .priority(11)
//                        .text("Item")
//                        .children(future)
//                        .build());
    }
Highlights the supplied document item in the explorer tree.
stroom-core-client/src/main/java/stroom/document/client/DocumentPluginEventManager.java