columnsLayoutCtr.setCol2(toolComp);
mainPanel.setContent(detailsController.getInitialComponent());
}
} else if (viewIdentifier.startsWith(CatalogEntry.class.getSimpleName())) {
String catId = viewIdentifier.substring(viewIdentifier.indexOf(':') + 1);
TreeNode rootNode = menuTree.getTreeModel().getRootNode();
TreeNode activatedNode = TreeHelper.findNodeByUserObject("search.catalog", rootNode);
if (activatedNode != null) {
menuTree.setSelectedNodeId(activatedNode.getIdent());
activateContent(ureq, "search.catalog", catId);
}
} else {
// find the menu node that has the user object that represents the
// viewIdentifyer
// sub view identifyers are separated with ":" characters
String[] parsedViewIdentifyers = viewIdentifier.split(":");
TreeNode rootNode = this.menuTree.getTreeModel().getRootNode();
TreeNode activatedNode = TreeHelper.findNodeByUserObject(parsedViewIdentifyers[0], rootNode);
if (activatedNode != null) {
this.menuTree.setSelectedNodeId(activatedNode.getIdent());
activateContent(ureq, parsedViewIdentifyers[0], (parsedViewIdentifyers.length > 1 ? parsedViewIdentifyers[1] : null));
} else {
// not found, activate the root node
this.menuTree.setSelectedNodeId(rootNode.getIdent());
activateContent(ureq, parsedViewIdentifyers[0], null);