Package com.puppetlabs.xtext.dommodel

Examples of com.puppetlabs.xtext.dommodel.RegionMatch.apply()


          commentLayout != null, "setCommentLayout(ILayout) must have been called first.");
        commentLayout.format(styleSet, node, output, context);
      }
      else
        // output the part of the text that is inside the region as verbatim text
        output.appendText(match.apply().getFirst(), true);
    }
  }

  @Override
  protected void formatToken(StyleSet styleSet, IDomNode node, ITextFlow output, ILayoutContext context) {
View Full Code Here


    if(match.isInside()) {
      if(match.isContained() && !context.isWhitespacePreservation())
        formatTokenInternal(styleSet, node, output, context);
      else
        // output the part of the text that is inside the region as verbatim text
        output.appendText(match.apply().getFirst(), true);
    }

  }

  /**
 
View Full Code Here

        LineBreaks lineBreaks = styleSet.getStyleValue(LineBreakStyle.class, node, defaultLineBreaks);
        String text = styleSet.getStyleValue(TokenTextStyle.class, node);
        applySpacingAndLinebreaks(context, node, text, spacing, lineBreaks, output);
      }
      else {
        output.appendText(match.apply().getFirst());
      }
    }
  }

}
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.