Search in sources :

Example 1 with CorrectionOverviewController

use of org.olat.ims.qti21.ui.assessment.CorrectionOverviewController in project OpenOLAT by OpenOLAT.

the class IQIdentityListCourseNodeController method doStartCorrection.

private void doStartCorrection(UserRequest ureq) {
    AssessmentToolOptions asOptions = getOptions();
    correctionIdentitiesCtrl = new CorrectionOverviewController(ureq, getWindowControl(), stackPanel, getCourseEnvironment(), asOptions, (IQTESTCourseNode) courseNode);
    if (correctionIdentitiesCtrl.getNumberOfAssessedIdentities() == 0) {
        showWarning("grade.nobody");
        correctionIdentitiesCtrl = null;
    } else {
        listenTo(correctionIdentitiesCtrl);
        stackPanel.pushController(translate("correction.test.title"), correctionIdentitiesCtrl);
    }
}
Also used : IQTESTCourseNode(org.olat.course.nodes.IQTESTCourseNode) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) CorrectionOverviewController(org.olat.ims.qti21.ui.assessment.CorrectionOverviewController)

Example 2 with CorrectionOverviewController

use of org.olat.ims.qti21.ui.assessment.CorrectionOverviewController in project openolat by klemens.

the class IQIdentityListCourseNodeController method doStartCorrection.

private void doStartCorrection(UserRequest ureq) {
    AssessmentToolOptions asOptions = getOptions();
    correctionIdentitiesCtrl = new CorrectionOverviewController(ureq, getWindowControl(), stackPanel, getCourseEnvironment(), asOptions, (IQTESTCourseNode) courseNode);
    if (correctionIdentitiesCtrl.getNumberOfAssessedIdentities() == 0) {
        showWarning("grade.nobody");
        correctionIdentitiesCtrl = null;
    } else {
        listenTo(correctionIdentitiesCtrl);
        stackPanel.pushController(translate("correction.test.title"), correctionIdentitiesCtrl);
    }
}
Also used : IQTESTCourseNode(org.olat.course.nodes.IQTESTCourseNode) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) CorrectionOverviewController(org.olat.ims.qti21.ui.assessment.CorrectionOverviewController)

Aggregations

IQTESTCourseNode (org.olat.course.nodes.IQTESTCourseNode)2 CorrectionOverviewController (org.olat.ims.qti21.ui.assessment.CorrectionOverviewController)2 AssessmentToolOptions (org.olat.modules.assessment.AssessmentToolOptions)2