private List<Item> getMenuItems() {
        // TODO @AT Consider using MenuBuilder.builder() instead
        int position = 0;
        final List<Item> menuItems = new ArrayList<>();
        addMenuItem(position++, menuItems, xmlEditorPresenter.getStylesOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getIndicatorsOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getLineNumbersOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getLineWrapOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getShowIndentGuides());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getShowInvisiblesOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getViewAsHexOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getHighlightActiveLineOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getUseVimBindingsOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getBasicAutoCompletionOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getSnippetsOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getLiveAutoCompletionOption());
        addMenuItem(position++, menuItems, xmlEditorPresenter.getFormatAction());
        return menuItems;
    }
Update the labels of the context menu items depending on the current XML
editor settings.
stroom-core-client-widget/src/main/java/stroom/editor/client/view/EditorMenuPresenter.java