Examples of Template


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Template

          _builder.append("\t");
          _builder.append("<fx:application refId=\"fxApplication\"/>");
          _builder.newLine();
          {
            Deploy _deploy_33 = task.getDeploy();
            Template _template = _deploy_33.getTemplate();
            String _file = _template==null?(String)null:_template.getFile();
            String _trim = _file==null?(String)null:_file.trim();
            int _length_6 = _trim==null?0:_trim.length();
            boolean _greaterThan_6 = (_length_6 > 0);
            if (_greaterThan_6) {
              _builder.append("\t");
              _builder.append("\t");
              _builder.append("<fx:template ");
              _builder.newLine();
              _builder.append("\t");
              _builder.append("\t");
              _builder.append("\t");
              _builder.append("file=\"build/src/");
              Deploy _deploy_34 = task.getDeploy();
              Template _template_1 = _deploy_34.getTemplate();
              String _file_1 = _template_1.getFile();
              _builder.append(_file_1, "      ");
              _builder.append("\"");
              _builder.newLineIfNotEmpty();
              {
                Deploy _deploy_35 = task.getDeploy();
                Template _template_2 = _deploy_35.getTemplate();
                String _toFile = _template_2.getToFile();
                String _trim_1 = _toFile==null?(String)null:_toFile.trim();
                int _length_7 = _trim_1.length();
                boolean _greaterThan_7 = (_length_7 > 0);
                if (_greaterThan_7) {
                  _builder.append("\t");
                  _builder.append("\t");
                  _builder.append("tofile=\"dist/");
                  Deploy _deploy_36 = task.getDeploy();
                  Template _template_3 = _deploy_36.getTemplate();
                  String _toFile_1 = _template_3.getToFile();
                  _builder.append(_toFile_1, "    ");
                  _builder.append("\"");
                  _builder.newLineIfNotEmpty();
                }
              }
View Full Code Here

Examples of at.molindo.notify.model.Template

    for (File template : keyDir.listFiles()) {
      Matcher m = PATTERN.matcher(template.getName());
      if (m.matches()) {
        try {
          templates.add(new Template().setKey(key).setVersion(Version.valueOf(m.group(1).toUpperCase()))
              .setLocale(m.group(2) == null ? null : new Locale(m.group(2)))
              .setType(Type.valueOf(m.group(3).toUpperCase()))
              .setLastModified(new Date(template.lastModified()))
              .setContent(StreamUtils.string(FileUtils.in(template, Compression.NONE))));
        } catch (IOException e) {
View Full Code Here

Examples of buildcraft.core.blueprints.Template

    int xMax = (int) box.pMax().x;
    int yMax = world.getActualHeight();
    int zMax = (int) box.pMax().z;

    Template bpt = new Template(box.sizeX(), yMax - yMin + 1, box.sizeZ());

    if (box.pMin().y > 0) {
      for (int x = xMin; x <= xMax; ++x) {
        for (int z = zMin; z <= zMax; ++z) {
          bpt.contents[x - xMin][0][z - zMin] = new SchematicMask(true);
View Full Code Here

Examples of cambridge.Template

      }

      // Grab the locale-specific version of the template.
      Locale locale = RequestContextUtils.getLocale(request);

      Template template = templateFactory.createTemplate(locale);
      template.printTo(response.getWriter());
   }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.instruct.Template

        return true;
    }


    public Expression compile(Executable exec, Declaration decl) throws XPathException {
        Template target;

        if (template==null) {
            return null;   // error already reported
        }
        target = template.getCompiledTemplate();
View Full Code Here

Examples of com.agiletec.plugins.jpuserreg.aps.system.services.userreg.model.Template

    Map<String, Template> templates = new HashMap<String, Template>();
    List<Element> templateElements = parentElem.getChildren(TEMPLATE);
    Iterator<Element> it = templateElements.iterator();
    while (it.hasNext()) {
      Element templateElem = it.next();
      Template template = new Template();
      String langCode = templateElem.getAttributeValue(TEMPLATE_LANG_ATTR);
      template.setSubject(templateElem.getChildText(TEMPLATE_SUBJECT_CHILD));
      template.setBody(templateElem.getChildText(TEMPLATE_BODY_CHILD));
      templates.put(langCode, template);
    }
    return templates;
  }
View Full Code Here

Examples of com.alibaba.citrus.util.templatelite.Template

        this.componentName = name.toString();

        URL templateResource = assertNotNull(getClass().getResource(name + ".htm"),
                                             "Could not find template for page component class: %s", className);

        template = new Template(templateResource);
    }
View Full Code Here

Examples of com.astamuse.asta4d.template.Template

    }

    public Component(String path, AttributesRequire attrs) throws Exception {
        Configuration conf = Context.getCurrentThreadContext().getConfiguration();
        TemplateResolver templateResolver = conf.getTemplateResolver();
        Template template = templateResolver.findTemplate(path);
        renderedElement = renderTemplate(template.getDocumentClone(), attrs);
    }
View Full Code Here

Examples of com.bea.canvas.Template

      "Family is Cedric Alois \n" +
      "Company locations: San Jose Paris \n" +
      "Workplaces are San Francisco Paris\n"
      ;   
    try {
      Template tmpl = Canvas.getTemplate(templatePath);
      StringBuffer sb = new StringBuffer();
      tmpl.merge(ctx, sb);
     
      String result = sb.toString();
      System.out.println("===" + result + "===");
      if (expected.equals(result)) {       
        System.out.println("Passed");
View Full Code Here

Examples of com.cburch.logisim.prefs.Template

          FileInputStream reader = null;
          InputStream reader2 = null;
          try {
            Loader loader = new Loader(getPreferencesFrame());
            reader = new FileInputStream(file);
            Template template = Template.create(reader);
            reader2 = template.createStream();
            LogisimFile.load(reader2, loader); // to see if OK
            AppPreferences.setTemplateFile(file, template);
            AppPreferences.setTemplateType(AppPreferences.TEMPLATE_CUSTOM);
          } catch (LoaderException ex) {
          } catch (IOException ex) {
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.