this.customLinkTreeModel = customLinkTreeModel;
boolean ajax = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
if (ajax) {
// For real browsers we use the cool ajax tree
ajaxTreeController = new TreeController(ureq, getWindowControl(), customLinkTreeModel.getRootNode().getTitle(), customLinkTreeModel, null);
ajaxTreeController.addControllerListener(this);
mainVC.put("internalLinkTree", ajaxTreeController.getInitialComponent());
// choose and cancel link
chooseLink = LinkFactory.createButton("selectfile", mainVC, this);
cancelLink = LinkFactory.createButton("cancel", mainVC, this);