Class BslCommentReplacer

  • All Implemented Interfaces:
    org.eclipse.xtext.formatting2.ITextReplacer

    public class BslCommentReplacer
    extends org.eclipse.xtext.formatting2.internal.CommentReplacer
    This class is simple extension of CommentReplacer. It does not format comments at all
    • Field Summary

      • Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer

        GET_REGION
    • Constructor Summary

      Constructors 
      Constructor Description
      BslCommentReplacer​(org.eclipse.xtext.formatting2.regionaccess.IComment comment)
      Creates instance by calling super's constructor
    • Constructor Detail

      • BslCommentReplacer

        public BslCommentReplacer​(org.eclipse.xtext.formatting2.regionaccess.IComment comment)
        Creates instance by calling super's constructor
        Parameters:
        comment - The comment that shall be replaced, cannot be null
    • Method Detail

      • createReplacements

        public org.eclipse.xtext.formatting2.ITextReplacerContext createReplacements​(org.eclipse.xtext.formatting2.ITextReplacerContext context)
      • configureWhitespace

        public void configureWhitespace​(org.eclipse.xtext.formatting2.internal.WhitespaceReplacer leading,
                                        org.eclipse.xtext.formatting2.internal.WhitespaceReplacer trailing)
        Specified by:
        configureWhitespace in class org.eclipse.xtext.formatting2.internal.CommentReplacer