Search in sources :

Example 1 with CopyRepositoryEntryController

use of org.olat.repository.ui.author.CopyRepositoryEntryController in project OpenOLAT by OpenOLAT.

the class RepositoryEntryRuntimeController method doCopy.

private void doCopy(UserRequest ureq) {
    removeAsListenerAndDispose(cmc);
    removeAsListenerAndDispose(copyCtrl);
    copyCtrl = new CopyRepositoryEntryController(ureq, getWindowControl(), re);
    listenTo(copyCtrl);
    String title = translate("details.copy");
    cmc = new CloseableModalController(getWindowControl(), translate("close"), copyCtrl.getInitialComponent(), true, title);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CopyRepositoryEntryController(org.olat.repository.ui.author.CopyRepositoryEntryController)

Example 2 with CopyRepositoryEntryController

use of org.olat.repository.ui.author.CopyRepositoryEntryController in project openolat by klemens.

the class RepositoryEntryRuntimeController method doCopy.

private void doCopy(UserRequest ureq) {
    removeAsListenerAndDispose(cmc);
    removeAsListenerAndDispose(copyCtrl);
    copyCtrl = new CopyRepositoryEntryController(ureq, getWindowControl(), re);
    listenTo(copyCtrl);
    String title = translate("details.copy");
    cmc = new CloseableModalController(getWindowControl(), translate("close"), copyCtrl.getInitialComponent(), true, title);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CopyRepositoryEntryController(org.olat.repository.ui.author.CopyRepositoryEntryController)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 CopyRepositoryEntryController (org.olat.repository.ui.author.CopyRepositoryEntryController)2