Search in sources :

Example 6 with CPRunController

use of org.olat.course.nodes.cp.CPRunController in project OpenOLAT by OpenOLAT.

the class CPCourseNode method createPreviewController.

/**
 * @see org.olat.course.nodes.GenericCourseNode#createPreviewController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl,
 *      org.olat.course.run.userview.UserCourseEnvironment,
 *      org.olat.course.run.userview.NodeEvaluation)
 */
@Override
public Controller createPreviewController(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne) {
    updateModuleConfigDefaults(false);
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(ICourse.class, userCourseEnv.getCourseEnvironment().getCourseResourceableId());
    CPRunController cprunC = new CPRunController(getModuleConfiguration(), ureq, wControl, this, null, ores, true);
    return cprunC;
}
Also used : CPRunController(org.olat.course.nodes.cp.CPRunController) OLATResourceable(org.olat.core.id.OLATResourceable)

Aggregations

OLATResourceable (org.olat.core.id.OLATResourceable)6 CPRunController (org.olat.course.nodes.cp.CPRunController)6 GenericTreeModel (org.olat.core.gui.components.tree.GenericTreeModel)2 GenericTreeNode (org.olat.core.gui.components.tree.GenericTreeNode)2 TreeEvent (org.olat.core.gui.components.tree.TreeEvent)2 TreeNode (org.olat.core.gui.components.tree.TreeNode)2 Controller (org.olat.core.gui.control.Controller)2 ControllerEventListener (org.olat.core.gui.control.ControllerEventListener)2 WindowControl (org.olat.core.gui.control.WindowControl)2 TitledWrapperController (org.olat.core.gui.control.generic.title.TitledWrapperController)2 ContextEntry (org.olat.core.id.context.ContextEntry)2 AssertException (org.olat.core.logging.AssertException)2 EditorMainController (org.olat.course.editor.EditorMainController)2 AbstractAccessableCourseNode (org.olat.course.nodes.AbstractAccessableCourseNode)2 CourseNode (org.olat.course.nodes.CourseNode)2 STCourseNode (org.olat.course.nodes.STCourseNode)2 NodeEvaluation (org.olat.course.run.userview.NodeEvaluation)2