class WorkbenchMenuCompactNavBarView extends WorkbenchMenuNavBarView {

    @Override
    public void addMenuItem(final String id,
                            final String label,
                            final String parentId,
                            final Command command,
                            final MenuPosition position) {
        final AnchorListItem menuItem = GWT.create(AnchorListItem.class);
        menuItem.setText(label);
        if (command != null) {
            menuItem.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    command.execute();
                }
            });
        }
        getMenuItemWidgetMap().put(id,
                                   menuItem);
        menuLabelMap.put(id,
                         label);
        dropDownMenu.add(menuItem);
    }

}