Examples of indent()


Examples of br.com.caelum.tubaina.parser.SimpleIndentator.indent()

    String options = chunk.getOptions();
    String language = detectLanguage(options);
    List<Integer> highlights = detectHighlights(options);
    boolean numbered = options.contains("#");
    SimpleIndentator simpleIndentator = new SimpleIndentator(2);
    String indentedCode = simpleIndentator.indent(chunk.getContent());
    String label = matchLabel(options);
    String pygmentsOptions = codeTagOptionsParser.parsePygmentsOptions(options);

    String code = htmlCodeHighlighter.highlight(indentedCode, language, numbered, highlights, pygmentsOptions);
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Lists.indent()

        features.add("ordered");
      }
      if (listsAnnotation.unordered()) {
        features.add("unordered");
      }
      if (listsAnnotation.indent()) {
        features.add("indent");
      }
      if (listsAnnotation.outdent()) {
        features.add("outdent");
      }
View Full Code Here

Examples of com.google.gwt.codegen.server.SourceWriter.indent()

      writer.println();
      if (!isInterface) {
        writer.println("@Override");
      }
      writer.println(method.getReadableDeclaration(false, true, true, true, true) + " {");
      writer.indent();
      writer.println("ensureInstance();");
      if (method.getReturnType() != JPrimitiveType.VOID) {
        writer.print("return ");
      }
      writer.print("instance." + method.getName() + '(');
View Full Code Here

Examples of com.google.gwt.libideas.resources.rebind.StringSourceWriter.indent()

    SourceWriter sw = new StringSourceWriter();
    // Write the expression to create the subtype.
    sw.println("new " + method.getReturnType().getQualifiedSourceName()
        + "() {");
    sw.indent();

    JClassType cssResourceSubtype = method.getReturnType().isInterface();
    assert cssResourceSubtype != null;
    Map<String, Map<JMethod, String>> replacementsWithPrefix = new HashMap<String, Map<JMethod, String>>();
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.IndentedWriter.indent()

    // Open interface.
    genInterfaceAnnotations(writer);
    writer.write("public interface %s extends Messages {", getMessagesClassName());
    writer.newline();
    writer.indent();

    // Write message methods
    for (MessageWriter m : messages) {
      m.writeDeclaration(writer);
    }
View Full Code Here

Examples of com.google.gwt.user.rebind.SourceWriter.indent()

          typeOracle, sourceType);

      // We really use a SourceWriter since it's convenient
      SourceWriter sw = f.createSourceWriter(context, out);
      sw.println("public " + generatedSimpleSourceName + "() {");
      sw.indent();
      sw.println("nativeInit();");
      sw.println("init((" + userPrefsType.getQualifiedSourceName()
          + ")GWT.create(" + userPrefsType.getQualifiedSourceName()
          + ".class));");
      sw.outdent();
View Full Code Here

Examples of com.google.gwt.user.rebind.SourceWriter.indent()

          + ".class));");
      sw.outdent();
      sw.println("}");

      sw.println("private native void nativeInit() /*-{");
      sw.indent();
      for (JClassType interfaceType : sourceType.getImplementedInterfaces()) {
        generateFeatureInitializer(logger, typeOracle, sw, sourceType,
            interfaceType);
      }
      sw.outdent();
View Full Code Here

Examples of com.google.gwt.user.rebind.SourceWriter.indent()

        // private final FooProperty __propName = new FooProperty() {...}
        sw.println("private final "
            + extendsPreferenceType.getParameterizedQualifiedSourceName()
            + " __" + m.getName() + " = ");
        sw.indent();
        writeInstantiation(logger, sw, extendsPreferenceType, m);
        sw.println(";");
        sw.outdent();

        // public FooProperty property() { return __property; }
View Full Code Here

Examples of com.google.gwt.user.rebind.SourceWriter.indent()

        // public FooProperty property() { return __property; }
        sw.print("public ");
        sw.print(m.getReadableDeclaration(true, true, true, true, true));
        sw.println("{");
        sw.indent();
        sw.println("return __" + m.getName() + ";");
        sw.outdent();
        sw.println("}");
      }
View Full Code Here

Examples of com.google.gwt.user.rebind.SourceWriter.indent()

      throws UnableToCompleteException {
    String name = method.getName();

    SourceWriter sw = context.getSourceWriter();
    sw.println("new " + ImageResourcePrototype.class.getName() + "(");
    sw.indent();
    sw.println('"' + name + "\",");

    ImageBundleBuilder.ImageRect rect;
    if (!externalImageRects.containsKey(name)) {
      // This is a reference to a field
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.