use of org.olat.core.gui.components.stack.BreadcrumbPanelAware in project OpenOLAT by OpenOLAT.
the class GenericMainController method createController.
/**
* creates Controller for clicked Node, default implementation.
*
* @param ae
* @param ureq
* @return corresponding controller
*/
protected Controller createController(ActionExtension ae, UserRequest ureq) {
// default implementation for simple case where action extension.
WindowControl bwControl = getWindowControl();
if (olatMenuTree.getTreeModel() instanceof GenericTreeModel) {
if (ae instanceof Extension) {
Extension nE = (Extension) ae;
// get our ores for the extension
OLATResourceable ores;
if (ae instanceof GenericActionExtension && StringHelper.containsNonWhitespace(((GenericActionExtension) ae).getNavigationKey())) {
// there is a navigation-key, use the nice way
ores = OresHelper.createOLATResourceableInstance(((GenericActionExtension) ae).getNavigationKey(), 0L);
} else {
ores = OresHelper.createOLATResourceableInstance(GMCMT, CodeHelper.getUniqueIDFromString(nE.getUniqueExtensionID()));
}
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
bwControl = addToHistory(ureq, ores, null);
}
}
Controller ctrl = ae.createController(ureq, bwControl, null);
if (ctrl instanceof BreadcrumbPanelAware) {
((BreadcrumbPanelAware) ctrl).setBreadcrumbPanel(stackVC);
}
return ctrl;
}
use of org.olat.core.gui.components.stack.BreadcrumbPanelAware in project OpenOLAT by OpenOLAT.
the class HomeMainController method createController.
protected Controller createController(GenericActionExtension ae, UserRequest ureq) {
WindowControl bwControl = getWindowControl();
// get our ores for the extension
OLATResourceable ores = OresHelper.createOLATResourceableInstance(ae.getNavigationKey(), 0L);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
bwControl = addToHistory(ureq, ores, null);
Controller ctrl = ae.createController(ureq, bwControl, null);
if (ctrl instanceof BreadcrumbPanelAware) {
((BreadcrumbPanelAware) ctrl).setBreadcrumbPanel(stackPanel);
}
return ctrl;
}
use of org.olat.core.gui.components.stack.BreadcrumbPanelAware in project openolat by klemens.
the class GenericMainController method createController.
/**
* creates Controller for clicked Node, default implementation.
*
* @param ae
* @param ureq
* @return corresponding controller
*/
protected Controller createController(ActionExtension ae, UserRequest ureq) {
// default implementation for simple case where action extension.
WindowControl bwControl = getWindowControl();
if (olatMenuTree.getTreeModel() instanceof GenericTreeModel) {
if (ae instanceof Extension) {
Extension nE = (Extension) ae;
// get our ores for the extension
OLATResourceable ores;
if (ae instanceof GenericActionExtension && StringHelper.containsNonWhitespace(((GenericActionExtension) ae).getNavigationKey())) {
// there is a navigation-key, use the nice way
ores = OresHelper.createOLATResourceableInstance(((GenericActionExtension) ae).getNavigationKey(), 0L);
} else {
ores = OresHelper.createOLATResourceableInstance(GMCMT, CodeHelper.getUniqueIDFromString(nE.getUniqueExtensionID()));
}
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
bwControl = addToHistory(ureq, ores, null);
}
}
Controller ctrl = ae.createController(ureq, bwControl, null);
if (ctrl instanceof BreadcrumbPanelAware) {
((BreadcrumbPanelAware) ctrl).setBreadcrumbPanel(stackVC);
}
return ctrl;
}
use of org.olat.core.gui.components.stack.BreadcrumbPanelAware in project openolat by klemens.
the class HomeMainController method createController.
protected Controller createController(GenericActionExtension ae, UserRequest ureq) {
WindowControl bwControl = getWindowControl();
// get our ores for the extension
OLATResourceable ores = OresHelper.createOLATResourceableInstance(ae.getNavigationKey(), 0L);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
bwControl = addToHistory(ureq, ores, null);
Controller ctrl = ae.createController(ureq, bwControl, null);
if (ctrl instanceof BreadcrumbPanelAware) {
((BreadcrumbPanelAware) ctrl).setBreadcrumbPanel(stackPanel);
}
return ctrl;
}
Aggregations