Search in sources :

Example 1 with AlienItemAnalyzer

use of org.olat.ims.qti21.model.xml.AlienItemAnalyzer in project OpenOLAT by OpenOLAT.

the class UnkownItemEditorController method canConvert.

private boolean canConvert() {
    AlienItemAnalyzer analyzer = new AlienItemAnalyzer(item);
    Report report = analyzer.analyze();
    return report.getType() != QTI21QuestionType.unkown && !report.isBlocker();
}
Also used : Report(org.olat.ims.qti21.model.xml.AlienItemAnalyzer.Report) AlienItemAnalyzer(org.olat.ims.qti21.model.xml.AlienItemAnalyzer)

Example 2 with AlienItemAnalyzer

use of org.olat.ims.qti21.model.xml.AlienItemAnalyzer in project OpenOLAT by OpenOLAT.

the class UnkownItemEditorController method doConfirmConversion.

private void doConfirmConversion(UserRequest ureq) {
    Report report = new AlienItemAnalyzer(item).analyze();
    confirmationCtrl = new UnkownItemConversionConfirmationController(ureq, getWindowControl(), report);
    listenTo(confirmationCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), confirmationCtrl.getInitialComponent(), true, translate("convert.alien"));
    listenTo(cmc);
    cmc.activate();
}
Also used : Report(org.olat.ims.qti21.model.xml.AlienItemAnalyzer.Report) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AlienItemAnalyzer(org.olat.ims.qti21.model.xml.AlienItemAnalyzer)

Example 3 with AlienItemAnalyzer

use of org.olat.ims.qti21.model.xml.AlienItemAnalyzer in project openolat by klemens.

the class UnkownItemEditorController method canConvert.

private boolean canConvert() {
    AlienItemAnalyzer analyzer = new AlienItemAnalyzer(item);
    Report report = analyzer.analyze();
    return report.getType() != QTI21QuestionType.unkown && !report.isBlocker();
}
Also used : Report(org.olat.ims.qti21.model.xml.AlienItemAnalyzer.Report) AlienItemAnalyzer(org.olat.ims.qti21.model.xml.AlienItemAnalyzer)

Example 4 with AlienItemAnalyzer

use of org.olat.ims.qti21.model.xml.AlienItemAnalyzer in project openolat by klemens.

the class UnkownItemEditorController method doConfirmConversion.

private void doConfirmConversion(UserRequest ureq) {
    Report report = new AlienItemAnalyzer(item).analyze();
    confirmationCtrl = new UnkownItemConversionConfirmationController(ureq, getWindowControl(), report);
    listenTo(confirmationCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), confirmationCtrl.getInitialComponent(), true, translate("convert.alien"));
    listenTo(cmc);
    cmc.activate();
}
Also used : Report(org.olat.ims.qti21.model.xml.AlienItemAnalyzer.Report) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AlienItemAnalyzer(org.olat.ims.qti21.model.xml.AlienItemAnalyzer)

Aggregations

AlienItemAnalyzer (org.olat.ims.qti21.model.xml.AlienItemAnalyzer)4 Report (org.olat.ims.qti21.model.xml.AlienItemAnalyzer.Report)4 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2