Examples of AssertException


Examples of org.olat.core.logging.AssertException

   * @param ureq
   * @param control
   */
  public I18nConfigSubDeleteLangController(UserRequest ureq, WindowControl control) {
    super(ureq, control, LAYOUT_VERTICAL);
    if (!I18nModule.isTransToolEnabled()) { throw new AssertException(
        "Languages can only be deleted when the translation tool is enabled and the translation tool source pathes are configured in the build.properties"); }
    initForm(ureq);
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

   * @param ureq
   * @param windowControl
   * @return
   */
  public Controller createInlineTranslationDispatcherController(UserRequest ureq, WindowControl windowControl) {
    if (inlineTranslationC != null) throw new AssertException("Can't set the inline translation dispatcher twice!", null);
    inlineTranslationC = I18nUIFactory.createInlineTranslationIntercepHandlerController(ureq, windowControl);
    this.inlineTranslation_interceptHandler  = inlineTranslationC;
    return inlineTranslationC;
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

        // this may happen -only- right after the login when the home page appears and as the next click the browser-reload button is pressed.
        // to avoid this rare case red screen, we return silently.
        if (diff == 0) { // reload
          return;         
        } else {
          throw new AssertException("rootWCI was null: never dispatched, but pressed back or forward??");
        }
      }
      int esize = guipathentries.size();
     
      // BACK case
View Full Code Here

Examples of org.olat.core.logging.AssertException

      // since exactly one match, there is no ambiguity -> return the match
      return classMatches.get(0);
    } else {
      // classMatches > 1 -> ambiguity
      // brasato:: todo now compare the controller initialcomponents parent-hierarchy
      throw new AssertException("todo!!");
    }
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

    return name;
  }

  @Override
  public boolean isInlineEditingOn() {
    if(!isInlineEditingElement) throw new AssertException("isInlineEditingOn called although it is not a inlineEditingElement");
    return isInlineEditingOn;
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

    this.i18nKey4EmptyText = i18nKey4Text;
    return this;
  }
 
  public String getEmptyDisplayText(){
    if(getTranslator()==null) throw new AssertException("getEmptyDisplayText called to early, no translator available");
    return translate(i18nKey4EmptyText, null);
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

    if(getTranslator()==null) throw new AssertException("getEmptyDisplayText called to early, no translator available");
    return translate(i18nKey4EmptyText, null);
  }
 
  protected void isInlineEditingOn(boolean isOn){
    if(!isInlineEditingElement) throw new AssertException("isInlineEditingOn(..) called although it is not a inlineEditingElement");
    isInlineEditingOn = isOn;
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

    if(!isInlineEditingElement) throw new AssertException("isInlineEditingOn(..) called although it is not a inlineEditingElement");
    isInlineEditingOn = isOn;
  }
 
  protected Component getInlineEditingComponent(){
    if(!isInlineEditingElement) throw new AssertException("getInlineEditingComponent called although it is not a inlineEditingElement");
    return inlineEditingComponent;
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

    if(!isInlineEditingElement) throw new AssertException("getInlineEditingComponent called although it is not a inlineEditingElement");
    return inlineEditingComponent;
  }
 
  protected void setInlineEditingComponent(Component inlineEditingComponent){
    if(!isInlineEditingElement) throw new AssertException("getInlineEditingComponent called although it is not a inlineEditingElement");
    this.inlineEditingComponent = inlineEditingComponent;
  }
View Full Code Here

Examples of org.olat.core.logging.AssertException

      //in develmode, check that either translation for labelkey is available
      //or that the other method to add the element is used.
      //other in the sense of using the LabelI18nKey set to null, this
      //avoids false messages in the logfile concering missng translations.
      if(labelTrsl == null && hasLabel()){
        throw new AssertException("Your label "+labelKey+" for formitem "+getName()+" is not available, please use the addXXX method with labelI18nKey and set it to null.");
      }
    }
    labelC = new SimpleLabelText(labelKey, labelTrsl);
    errorComponent = new SimpleFormErrorText(errorKey, translate(errorKey, errorParams));
    exampleC = new SimpleExampleText(exampleKey, translate(exampleKey, exampleParams));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.