use of org.olat.repository.ui.author.CreateRepositoryEntryController in project openolat by klemens.
the class QTIRuntimeController method doConvertToQTI21.
private void doConvertToQTI21(UserRequest ureq) {
removeAsListenerAndDispose(localCmc);
removeAsListenerAndDispose(createConvertedTestController);
OLATResource originalObject = getRepositoryEntry().getOlatResource();
RepositoryHandler qti21Handler = repositoryHandlerFactory.getRepositoryHandler(ImsQTI21Resource.TYPE_NAME);
createConvertedTestController = new CreateRepositoryEntryController(ureq, getWindowControl(), qti21Handler);
createConvertedTestController.setCreateObject(originalObject);
createConvertedTestController.setDisplayname(getRepositoryEntry().getDisplayname());
createConvertedTestController.setExampleAndHelp(translate("convert.qti21.hint"), "Change+from+QTI+1.2+to+QTI+2.1");
listenTo(createConvertedTestController);
localCmc = new CloseableModalController(getWindowControl(), translate("close"), createConvertedTestController.getInitialComponent(), true, translate("title.convert.qti21"));
localCmc.activate();
listenTo(localCmc);
}
use of org.olat.repository.ui.author.CreateRepositoryEntryController in project openolat by klemens.
the class QTIEditorMainController method doConvertToQTI21.
private void doConvertToQTI21(UserRequest ureq) {
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(createConvertedTestController);
RepositoryHandler handler = repositoryHandlerFactory.getRepositoryHandler(ImsQTI21Resource.TYPE_NAME);
createConvertedTestController = new CreateRepositoryEntryController(ureq, getWindowControl(), handler);
createConvertedTestController.setCreateObject(qtiEntry.getOlatResource());
createConvertedTestController.setDisplayname(qtiEntry.getDisplayname());
listenTo(createConvertedTestController);
cmc = new CloseableModalController(getWindowControl(), translate("close"), createConvertedTestController.getInitialComponent(), true, translate("title.convert.qti21"));
cmc.activate();
listenTo(cmc);
}
use of org.olat.repository.ui.author.CreateRepositoryEntryController in project OpenOLAT by OpenOLAT.
the class QTIEditorMainController method doConvertToQTI21.
private void doConvertToQTI21(UserRequest ureq) {
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(createConvertedTestController);
RepositoryHandler handler = repositoryHandlerFactory.getRepositoryHandler(ImsQTI21Resource.TYPE_NAME);
createConvertedTestController = new CreateRepositoryEntryController(ureq, getWindowControl(), handler);
createConvertedTestController.setCreateObject(qtiEntry.getOlatResource());
createConvertedTestController.setDisplayname(qtiEntry.getDisplayname());
listenTo(createConvertedTestController);
cmc = new CloseableModalController(getWindowControl(), translate("close"), createConvertedTestController.getInitialComponent(), true, translate("title.convert.qti21"));
cmc.activate();
listenTo(cmc);
}
use of org.olat.repository.ui.author.CreateRepositoryEntryController in project OpenOLAT by OpenOLAT.
the class QTIRuntimeController method doConvertToQTI21.
private void doConvertToQTI21(UserRequest ureq) {
removeAsListenerAndDispose(localCmc);
removeAsListenerAndDispose(createConvertedTestController);
OLATResource originalObject = getRepositoryEntry().getOlatResource();
RepositoryHandler qti21Handler = repositoryHandlerFactory.getRepositoryHandler(ImsQTI21Resource.TYPE_NAME);
createConvertedTestController = new CreateRepositoryEntryController(ureq, getWindowControl(), qti21Handler);
createConvertedTestController.setCreateObject(originalObject);
createConvertedTestController.setDisplayname(getRepositoryEntry().getDisplayname());
createConvertedTestController.setExampleAndHelp(translate("convert.qti21.hint"), "Change+from+QTI+1.2+to+QTI+2.1");
listenTo(createConvertedTestController);
localCmc = new CloseableModalController(getWindowControl(), translate("close"), createConvertedTestController.getInitialComponent(), true, translate("title.convert.qti21"));
localCmc.activate();
listenTo(localCmc);
}
Aggregations