private void buildGui(RibbonBarInfo barInfo, MapWidget mapWidget) {
for (RibbonGroupInfo groupInfo : barInfo.getGroups()) {
RibbonGroupLayout group = new RibbonGroupLayout(groupInfo.getTitle());
for (RibbonColumnInfo columnInfo : groupInfo.getColumns()) {
RibbonColumn ribbonColumn = RibbonColumnRegistry.getRibbonColumn(columnInfo.getType(),
columnInfo.getTools(), columnInfo.getParameters(), mapWidget);
if (ribbonColumn != null) {
group.addColumn(ribbonColumn);
}
}