Search in sources :

Example 1 with CatalogEntryAddController

use of org.olat.repository.ui.catalog.CatalogEntryAddController in project OpenOLAT by OpenOLAT.

the class CatalogSettingsController method doAddCatalog.

/**
 * Internal helper to initiate the add to catalog workflow
 * @param ureq
 */
private void doAddCatalog(UserRequest ureq) {
    removeAsListenerAndDispose(catalogAdddController);
    removeAsListenerAndDispose(cmc);
    catalogAdddController = new CatalogEntryAddController(ureq, getWindowControl(), entry, true, false);
    listenTo(catalogAdddController);
    cmc = new CloseableModalController(getWindowControl(), "close", catalogAdddController.getInitialComponent(), true, translate("details.catadd"));
    listenTo(cmc);
    cmc.activate();
}
Also used : CatalogEntryAddController(org.olat.repository.ui.catalog.CatalogEntryAddController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 2 with CatalogEntryAddController

use of org.olat.repository.ui.catalog.CatalogEntryAddController in project openolat by klemens.

the class CatalogSettingsController method doAddCatalog.

/**
 * Internal helper to initiate the add to catalog workflow
 * @param ureq
 */
private void doAddCatalog(UserRequest ureq) {
    removeAsListenerAndDispose(catalogAdddController);
    removeAsListenerAndDispose(cmc);
    catalogAdddController = new CatalogEntryAddController(ureq, getWindowControl(), entry, true, false);
    listenTo(catalogAdddController);
    cmc = new CloseableModalController(getWindowControl(), "close", catalogAdddController.getInitialComponent(), true, translate("details.catadd"));
    listenTo(cmc);
    cmc.activate();
}
Also used : CatalogEntryAddController(org.olat.repository.ui.catalog.CatalogEntryAddController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 CatalogEntryAddController (org.olat.repository.ui.catalog.CatalogEntryAddController)2