Search in sources :

Example 1 with ActivateableTabbableDefaultController

use of org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController in project OpenOLAT by OpenOLAT.

the class EditorMainController method jumpToNodeEditor.

/**
 * Initializes the node edit tabbed pane and its controller for this
 * particular node
 *
 * @param ureq
 * @param chosenNode
 * @param groupMgr
 */
private void jumpToNodeEditor(String activatorIdent, UserRequest ureq, CourseNode chosenNode) {
    initNodeEditor(ureq, chosenNode);
    if (nodeEditCntrllr instanceof ActivateableTabbableDefaultController) {
        OLATResourceable activeOres = OresHelper.createOLATResourceableInstanceWithoutCheck(activatorIdent, 0l);
        List<ContextEntry> entries = BusinessControlFactory.getInstance().createCEListFromString(activeOres);
        ((ActivateableTabbableDefaultController) nodeEditCntrllr).activate(ureq, entries, null);
    }
}
Also used : ActivateableTabbableDefaultController(org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController) OLATResourceable(org.olat.core.id.OLATResourceable) ContextEntry(org.olat.core.id.context.ContextEntry)

Example 2 with ActivateableTabbableDefaultController

use of org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController in project openolat by klemens.

the class EditorMainController method jumpToNodeEditor.

/**
 * Initializes the node edit tabbed pane and its controller for this
 * particular node
 *
 * @param ureq
 * @param chosenNode
 * @param groupMgr
 */
private void jumpToNodeEditor(String activatorIdent, UserRequest ureq, CourseNode chosenNode) {
    initNodeEditor(ureq, chosenNode);
    if (nodeEditCntrllr instanceof ActivateableTabbableDefaultController) {
        OLATResourceable activeOres = OresHelper.createOLATResourceableInstanceWithoutCheck(activatorIdent, 0l);
        List<ContextEntry> entries = BusinessControlFactory.getInstance().createCEListFromString(activeOres);
        ((ActivateableTabbableDefaultController) nodeEditCntrllr).activate(ureq, entries, null);
    }
}
Also used : ActivateableTabbableDefaultController(org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController) OLATResourceable(org.olat.core.id.OLATResourceable) ContextEntry(org.olat.core.id.context.ContextEntry)

Aggregations

ActivateableTabbableDefaultController (org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 ContextEntry (org.olat.core.id.context.ContextEntry)2