Package org.jboss.errai.ui.rebind.chain

Examples of org.jboss.errai.ui.rebind.chain.TemplateChain


  private void performCssTransformations(final LessStylesheetContext stylesheetContext, final Collection<MetaClass> templated) {
    for (MetaClass metaClass : templated) {
      final String templateFileName = TemplatedCodeDecorator.getTemplateFileName(metaClass);

      final TemplateChain chain = new TemplateChain();
      chain.addCommand(new SelectorReplacer(stylesheetContext.getStyleMapping()));
      chain.visitTemplate(templateFileName);
    }
  }
View Full Code Here


    Map<String, Map<String, String>> indexedI18nValues = new HashMap<String, Map<String, String>>();
    for (MetaClass templatedAnnotatedClass : templatedAnnotatedClasses) {
      String templateFileName = TemplatedCodeDecorator.getTemplateFileName(templatedAnnotatedClass);
      String templateBundleName = templateFileName.replaceAll(".html", ".json").replace('/', '_');

      final TemplateChain chain = TemplateChain.getInstance();
      chain.visitTemplate(templateFileName, templatedAnnotatedClass);

      Map<String, String> i18nValues = chain.getResult(templateFileName, VALUES);

      allI18nValues.putAll(i18nValues);
      Map<String, String> templateI18nValues = indexedI18nValues.get(templateBundleName);
      if (templateI18nValues == null) {
        indexedI18nValues.put(templateBundleName, i18nValues);
View Full Code Here

      final Collection<MetaClass> templated = ClassScanner.getTypesAnnotatedWith(Templated.class);

      for (MetaClass metaClass : templated) {
        String templateFileName = TemplatedCodeDecorator.getTemplateFileName(metaClass);

        final TemplateChain chain = new TemplateChain();
        chain.addCommand(new SelectorReplacer(styleMapping));
        chain.visitTemplate(templateFileName);
      }
    }

    constructor.append(Stmt.create().invokeStatic(StyleInjector.class, "inject", stylesheetContext.getStylesheet()));
    constructor.finish();
View Full Code Here

      }
     
      final Collection<MetaClass> templated = ClassScanner.getTypesAnnotatedWith(Templated.class, context);
      for (MetaClass metaClass : templated) {
        String templateFileName = TemplatedCodeDecorator.getTemplateFileName(metaClass);
        final TemplateChain chain = new TemplateChain();
        chain.addCommand(new SelectorReplacer(styleMapping));
        chain.visitTemplate(templateFileName);
      }
      constructor.append(Stmt.create().invokeStatic(StyleInjector.class, "inject", stylesheetContext.getStylesheet()));

      // If this generator ran once it needs to rerun on every refresh (no
      // caching) because it moved the active template to a temporary location
View Full Code Here

      final Collection<MetaClass> templated = ClassScanner.getTypesAnnotatedWith(Templated.class);

      for (MetaClass metaClass : templated) {
        String templateFileName = TemplatedCodeDecorator.getTemplateFileName(metaClass);

        final TemplateChain chain = TemplateChain.getInstance();
        chain.visitTemplate(templateFileName, metaClass);
      }
    }

    constructor.append(Stmt.create().invokeStatic(StyleInjector.class, "inject", createStyleSheet()));
    constructor.finish();
View Full Code Here

    Map<String, Map<String, String>> indexedI18nValues = new HashMap<String, Map<String, String>>();
    for (MetaClass templatedAnnotatedClass : templatedAnnotatedClasses) {
      String templateFileName = TemplatedCodeDecorator.getTemplateFileName(templatedAnnotatedClass);
      String templateBundleName = templateFileName.replaceAll(".html", ".json").replace('/', '_');

      final TemplateChain chain = TemplateChain.getInstance();
      chain.visitTemplate(templateFileName, templatedAnnotatedClass);

      Map<String, String> i18nValues = chain.getResult(templateFileName, VALUES);

      allI18nValues.putAll(i18nValues);
      Map<String, String> templateI18nValues = indexedI18nValues.get(templateBundleName);
      if (templateI18nValues == null) {
        indexedI18nValues.put(templateBundleName, i18nValues);
View Full Code Here

    Map<String, Map<String, String>> indexedI18nValues = new HashMap<String, Map<String, String>>();
    for (MetaClass templatedAnnotatedClass : templatedAnnotatedClasses) {
      String templateFileName = TemplatedCodeDecorator.getTemplateFileName(templatedAnnotatedClass);
      String templateBundleName = templateFileName.replaceAll(".html", ".json").replace('/', '_');

      final TemplateChain chain = TemplateChain.getInstance();
      chain.visitTemplate(templateFileName, templatedAnnotatedClass);

      Map<String, String> i18nValues = chain.getResult(templateFileName, VALUES);

      allI18nValues.putAll(i18nValues);
      Map<String, String> templateI18nValues = indexedI18nValues.get(templateBundleName);
      if (templateI18nValues == null) {
        indexedI18nValues.put(templateBundleName, i18nValues);
View Full Code Here

    Map<String, Map<String, String>> indexedI18nValues = new HashMap<String, Map<String, String>>();
    for (MetaClass templatedAnnotatedClass : templatedAnnotatedClasses) {
      String templateFileName = TemplatedCodeDecorator.getTemplateFileName(templatedAnnotatedClass);
      String templateBundleName = templateFileName.replaceAll(".html", ".json").replace('/', '_');

      final TemplateChain chain = TemplateChain.getInstance();
      chain.visitTemplate(templateFileName);

      Map<String, String> i18nValues = chain.getResult(templateFileName, VALUES);

      allI18nValues.putAll(i18nValues);
      Map<String, String> templateI18nValues = indexedI18nValues.get(templateBundleName);
      if (templateI18nValues == null) {
        indexedI18nValues.put(templateBundleName, i18nValues);
View Full Code Here

      final Collection<MetaClass> templated = ClassScanner.getTypesAnnotatedWith(Templated.class);

      for (MetaClass metaClass : templated) {
        String templateFileName = TemplatedCodeDecorator.getTemplateFileName(metaClass);

        final TemplateChain chain = TemplateChain.getInstance();
        chain.visitTemplate(templateFileName);
      }
    }

    constructor.append(Stmt.create().invokeStatic(StyleInjector.class, "inject", createStyleSheet()));
    constructor.finish();
View Full Code Here

      final Collection<MetaClass> templated = ClassScanner.getTypesAnnotatedWith(Templated.class, context);

      for (MetaClass metaClass : templated) {
        String templateFileName = TemplatedCodeDecorator.getTemplateFileName(metaClass);

        final TemplateChain chain = new TemplateChain();
        chain.addCommand(new SelectorReplacer(styleMapping));
        chain.visitTemplate(templateFileName);
      }
    }

    constructor.append(Stmt.create().invokeStatic(StyleInjector.class, "inject", stylesheetContext.getStylesheet()));
    constructor.finish();
View Full Code Here

TOP

Related Classes of org.jboss.errai.ui.rebind.chain.TemplateChain

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.