{
this.groups = new ArrayList<ToolbarButtonGroup>();
if(toolbarKey.equalsIgnoreCase("tool.structuretool.siteNodeComponentsHeader"))
{
ToolbarButtonGroup crudGroup = new ToolbarButtonGroup("CRUD", "CRUD", "CRUD operations");
crudGroup.addButton(findButton(buttons, "createSiteNode"));
crudGroup.addButton(findButton(buttons, "pageDetail"));
crudGroup.addButton(findButton(buttons, "deleteSiteNode"));
crudGroup.addButton(findButton(buttons, "moveSiteNode"));
this.groups.add(crudGroup);
ToolbarButtonGroup previewGroup = new ToolbarButtonGroup("preview", "preview", "preview operations");
previewGroup.addButton(findButton(buttons, "previewPage"));
this.groups.add(previewGroup);
ToolbarButtonGroup publishGroup = new ToolbarButtonGroup("publish", "publish", "publish operations");
publishGroup.addButton(findButton(buttons, "publishPageStructure"));
publishGroup.addButton(findButton(buttons, "publishCurrentPage"));
publishGroup.addButton(findButton(buttons, "unpublishPage"));
this.groups.add(publishGroup);
}
}