Search in sources :

Example 1 with CourseAreasController

use of org.olat.course.area.CourseAreasController in project openolat by klemens.

the class CourseRuntimeController method doCourseAreas.

private void doCourseAreas(UserRequest ureq) {
    if (delayedClose == Delayed.courseAreas || requestForClose(ureq)) {
        removeCustomCSS();
        ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
        CourseAreasController ctrl = new CourseAreasController(ureq, getWindowControl(), getRepositoryEntry().getOlatResource(), getUserCourseEnvironment().isCourseReadOnly());
        ctrl.addLoggingResourceable(LoggingResourceable.wrap(course));
        areasCtrl = pushController(ureq, translate("command.courseareas"), ctrl);
        setActiveTool(areaLink);
        currentToolCtr = areasCtrl;
    } else {
        delayedClose = Delayed.courseAreas;
    }
}
Also used : ICourse(org.olat.course.ICourse) CourseAreasController(org.olat.course.area.CourseAreasController)

Example 2 with CourseAreasController

use of org.olat.course.area.CourseAreasController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doCourseAreas.

private void doCourseAreas(UserRequest ureq) {
    if (delayedClose == Delayed.courseAreas || requestForClose(ureq)) {
        removeCustomCSS();
        ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
        CourseAreasController ctrl = new CourseAreasController(ureq, getWindowControl(), getRepositoryEntry().getOlatResource(), getUserCourseEnvironment().isCourseReadOnly());
        ctrl.addLoggingResourceable(LoggingResourceable.wrap(course));
        areasCtrl = pushController(ureq, translate("command.courseareas"), ctrl);
        setActiveTool(areaLink);
        currentToolCtr = areasCtrl;
    } else {
        delayedClose = Delayed.courseAreas;
    }
}
Also used : ICourse(org.olat.course.ICourse) CourseAreasController(org.olat.course.area.CourseAreasController)

Aggregations

ICourse (org.olat.course.ICourse)2 CourseAreasController (org.olat.course.area.CourseAreasController)2