return null;
}
private TreeModel buildTreeModel() {
GenericTreeNode root, gtn;
GenericTreeModel gtm = new GenericTreeModel();
root = new GenericTreeNode();
root.setTitle(translate("menu.root"));
root.setUserObject(MENU_ROOT);
root.setAltText(translate("menu.root.alt"));
gtm.setRootNode(root);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.mysettings"));
gtn.setUserObject(MENU_MYSETTINGS);
gtn.setAltText(translate("menu.mysettings.alt"));
root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.calendar"));
gtn.setUserObject(MENU_CALENDAR);
gtn.setAltText(translate("menu.calendar.alt"));
root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.notifications"));
gtn.setUserObject(MENU_ADMINNOTIFICATIONS);
gtn.setAltText(translate("menu.notifications.alt"));
root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.bookmarks"));
gtn.setUserObject(MENU_BOOKMARKS);
gtn.setAltText(translate("menu.bookmarks.alt"));
root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.bc"));
gtn.setUserObject(MENU_BC);
gtn.setAltText(translate("menu.bc.alt"));
root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.note"));
gtn.setUserObject(MENU_NOTE);
gtn.setAltText(translate("menu.note.alt"));
root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.efficiencyStatements"));
gtn.setUserObject(MENU_EFFICIENCY_STATEMENTS);
gtn.setAltText(translate("menu.efficiencyStatements.alt"));
root.addChild(gtn);
//not yet active
// gtn = new GenericTreeNode();
// gtn.setTitle(translate("menu.weblog"));
// gtn.setUserObject(MENU_WEBLOG);
// gtn.setAltText(translate("menu.weblog.alt"));
// root.addChild(gtn);
gtn = new GenericTreeNode();
gtn.setTitle(translate("menu.otherusers"));
gtn.setUserObject(MENU_OTHERUSERS);
gtn.setAltText(translate("menu.otherusers.alt"));
root.addChild(gtn);
// add extension menues
ExtManager extm = ExtManager.getInstance();
Class<? extends HomeMainController> extensionPointMenu = this.getClass();
int cnt = extm.getExtensionCnt();
for (int i = 0; i < cnt; i++) {
Extension anExt = extm.getExtension(i);
// check for sites
ActionExtension ae = (ActionExtension) anExt.getExtensionFor(extensionPointMenu.getName());
if (ae != null) {
gtn = new GenericTreeNode();
String menuText = ae.getActionText(getLocale());
gtn.setTitle(menuText);
gtn.setUserObject(ae);
gtn.setAltText(ae.getDescription(getLocale()));
root.addChild(gtn);
// inform only once
if (!extensionLogged) {
extensionLogged = true;
extm.inform(extensionPointMenu, anExt, "added menu entry (for locale " + getLocale().toString() + " '" + menuText + "'");
}