@Override
    public void populate(MenuBar menuBar) {
        final ObservableList<Menu> menus = menuBar.getMenus();
        menus.clear();

        for (final Map.Entry<MenuBarTab, MenuBarTabHandler> e : handlers.entrySet()) {
            final Menu menu = new Menu(e.getKey().getText());
            e.getValue().populate(menu);
            if (!menu.getItems().isEmpty()) {
                menus.add(menu);
            }
        }
    }
Default implementation of {@link MenuBarComponent}.

@author Emil Forslund
@since  3.1.5
tool-parent/tool-core/src/main/java/com/speedment/tool/core/internal/menubar/MenuBarComponentImpl.java