Search in sources :

Example 1 with CreateRepositoryEntryController

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);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CreateRepositoryEntryController(org.olat.repository.ui.author.CreateRepositoryEntryController) OLATResource(org.olat.resource.OLATResource) RepositoryHandler(org.olat.repository.handlers.RepositoryHandler)

Example 2 with CreateRepositoryEntryController

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);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CreateRepositoryEntryController(org.olat.repository.ui.author.CreateRepositoryEntryController) RepositoryHandler(org.olat.repository.handlers.RepositoryHandler)

Example 3 with CreateRepositoryEntryController

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);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CreateRepositoryEntryController(org.olat.repository.ui.author.CreateRepositoryEntryController) RepositoryHandler(org.olat.repository.handlers.RepositoryHandler)

Example 4 with CreateRepositoryEntryController

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);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CreateRepositoryEntryController(org.olat.repository.ui.author.CreateRepositoryEntryController) OLATResource(org.olat.resource.OLATResource) RepositoryHandler(org.olat.repository.handlers.RepositoryHandler)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)4 RepositoryHandler (org.olat.repository.handlers.RepositoryHandler)4 CreateRepositoryEntryController (org.olat.repository.ui.author.CreateRepositoryEntryController)4 OLATResource (org.olat.resource.OLATResource)2