private void doInitContextListLayout(UserRequest ureq) {
// Layout is controlled with generic controller: menu - content - tools to
// look the same as in the groupmanagement
// 1) menu
olatMenuTree = new MenuTree("olatMenuTree");
GenericTreeModel gtm = new GenericTreeModel();
GenericTreeNode root = new GenericTreeNode();
if (groupType.equals(BusinessGroup.TYPE_RIGHTGROUP)) {
root.setTitle(translate("rightmanagement.index"));
root.setAltText(translate("rightmanagement.index.alt"));
} else {
root.setTitle(translate("groupmanagement.index"));
root.setAltText(translate("groupmanagement.index.alt"));
}
gtm.setRootNode(root);
olatMenuTree.setTreeModel(gtm);
olatMenuTree.setSelectedNodeId(gtm.getRootNode().getIdent());
// 2) context list
contextListVC = createVelocityContainer("contextlist");
// 3) tools
toolC = ToolFactory.createToolController(getWindowControl());
listenTo(toolC);