Package org.olat.core.gui.control.generic.messages

Examples of org.olat.core.gui.control.generic.messages.MessageController


      // if not root -> fallback to root. e.g. when a direct node jump fails
      if (calledCourseNode != null) {
        nclr = navHandler.evaluateJumpToCourseNode(ureq, getWindowControl(), null, null, null);
      }
      if (!nclr.isVisible()) {
        MessageController msgController = MessageUIFactory.createInfoMessage(ureq, this.getWindowControl(),  translate("course.noaccess.title"), translate("course.noaccess.text"));
        contentP.setContent(msgController.getInitialComponent());         
        luTree.setTreeModel(new GenericTreeModel());
        return false;
      }
    }
View Full Code Here


      DTabs dts = (DTabs) getWindowControl().getWindowBackOffice().getWindow().getAttribute("DTabs");
      OLATResourceable ores = OLATResourceManager.getInstance().findResourceable(
          courseRepositoryEntry.getOlatResource().getResourceableId(), courseRepositoryEntry.getOlatResource().getResourceableTypeName());
      if(ores==null) {
        //course was deleted!       
        MessageController msgController = MessageUIFactory.createInfoMessage(ureq, this.getWindowControl(), translate("course.deleted.title"), translate("course.deleted.text"));
        panel.setContent(msgController.getInitialComponent());       
        return;
      }
      DTab dt = dts.getDTab(ores);
      // remove and dispose "old course run"
      dts.removeDTab(dt);//disposes also dt and controllers
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.messages.MessageController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.