Package org.olat.core.extensions.action

Examples of org.olat.core.extensions.action.ActionExtension


    ExtManager extm = ExtManager.getInstance();
    int cnt = extm.getExtensionCnt();
    for (int i = 0; i < cnt; i++) {
      Extension anExt = extm.getExtension(i);
      // 1) general menu extensions
      ActionExtension ae = (ActionExtension) anExt.getExtensionFor(UserAdminMainController.class.getName() + EXTENSIONPOINT_MENU_MENUQUERIES);
      if (ae != null) {
        gtnChild = new GenericTreeNode();
        String menuText = ae.getActionText(getLocale());
        gtnChild.setTitle(menuText);
        gtnChild.setUserObject(ae);
        gtnChild.setAltText(ae.getDescription(getLocale()));
        gtn3.addChild(gtnChild);
        // inform only once
        if (!extensionLogged) {
          logInfo("added menu entry for locale " + getLocale().toString() + " '" + menuText + "'", null);
        }
View Full Code Here


  /**
   * Constructor to create an extension that registers in the admin site
   */
  public LDAPAdminExtension() {
    elements.putExtensionElement(SystemAdminMainController.class.getName(), new ActionExtension() {

      /**
       * @see org.olat.core.extensions.action.ActionExtension#getActionText(java.util.Locale)
       */
      public String getActionText(Locale loc) {
View Full Code Here

   * [used by spring]
   */
  private DemoExtension() {

    // --- after logging in, you would like to see a new link in the menu on the left (beeing in the user's home screen) and a new site (top of screen)
    elements.putExtensionElement(HomeMainController.class.getName(), new ActionExtension() {
      public String getDescription(Locale loc) {
        Translator trans = new PackageTranslator(PACKAGE, loc);
        return trans.translate("homemaincontroller.description");
      }

View Full Code Here

  class AdminCourseExtension implements Extension {

    private ExtensionElements elements = new ExtensionElements();
   
    AdminCourseExtension(){
      elements.putExtensionElement(SystemAdminMainController.class.getName(), new ActionExtension() {
     
        public String getDescription(Locale loc) {
          Translator transl = Util.createPackageTranslator(CourseModule.class, loc);
          return transl.translate("course.admin.infoloadedcourses");
        }
View Full Code Here

TOP

Related Classes of org.olat.core.extensions.action.ActionExtension

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.