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();
}
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();
}
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();
}
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();
}
Aggregations