public void show(final EditorPresenter xmlEditorPresenter,
                     final PopupPosition popupPosition) {
        this.xmlEditorPresenter = xmlEditorPresenter;
        ShowMenuEvent
                .builder()
                .items(getMenuItems())
                .popupPosition(popupPosition)
                .fire(xmlEditorPresenter);
    }
A context menu for the XML editor.
stroom-core-client-widget/src/main/java/stroom/editor/client/view/EditorMenuPresenter.java