Class BslCommentReplacer

java.lang.Object
org.eclipse.xtext.formatting2.internal.CommentReplacer
com.e1c.g5.v8.dt.formatter.bsl.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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureWhitespace(org.eclipse.xtext.formatting2.internal.WhitespaceReplacer leading, org.eclipse.xtext.formatting2.internal.WhitespaceReplacer trailing)
     
    org.eclipse.xtext.formatting2.ITextReplacerContext
    createReplacements(org.eclipse.xtext.formatting2.ITextReplacerContext context)
     

    Methods inherited from class org.eclipse.xtext.formatting2.internal.CommentReplacer

    getComment, getRegion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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