Package com.puppetlabs.xtext.dommodel.formatter.css

Examples of com.puppetlabs.xtext.dommodel.formatter.css.DomCSS


    final StyleSet oneOptionalSpaceNoLine = StyleSet.withImmutableStyles(//
      styles.oneSpace(), styles.noLineBreak());
    final StyleSet oneSpaceOneOptionalLine = StyleSet.withImmutableStyles(//
      styles.oneSpace(), styles.lineBreaks(0, 0, 1, true, true));

    DomCSS css = super.get();

    css.addRules(
      // RESOURCE
      // Resource expression with single titled body, should allow body to have title on same line
      // so, no line break, but one space here
      Select.and(inASingleBodiesResourceWithTitle, Select.whitespaceAfter(resourceLeftCurlyBracket)) //
      .withStyles( //
View Full Code Here


  @Override
  public ReplaceRegion format(IDomNode dom, final ITextRegion regionToFormat,
      final IFormattingContext formattingContext, final Acceptor errors) {

    final DomCSS css = cssProvider.get();
    ILayoutContext layoutContext = new AbstractLayoutContext() {

      @Override
      public DomCSS getCSS() {
        return css;
View Full Code Here

TOP

Related Classes of com.puppetlabs.xtext.dommodel.formatter.css.DomCSS

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.