Class BslWrapWithIndentByOffset

java.lang.Object
com.e1c.g5.v8.dt.formatter.bsl.BslWrapWithIndentByOffset
All Implemented Interfaces:
org.eclipse.xtext.formatting2.IAutowrapFormatter

public class BslWrapWithIndentByOffset extends Object implements org.eclipse.xtext.formatting2.IAutowrapFormatter
This class does not perform any formatting, it is done by BslWhitespaceReplacer. This one just carries some information.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    BslWrapWithIndentByOffset(int shiftOffset)
    Creates late calculated shoft wrap with this shift offset
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    format(org.eclipse.xtext.formatting2.regionaccess.ITextSegment region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting wrapped, org.eclipse.xtext.formatting2.IFormattableDocument document)
     
    int
     

    Methods inherited from class java.lang.Object

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

    • BslWrapWithIndentByOffset

      public BslWrapWithIndentByOffset(int shiftOffset)
      Creates late calculated shoft wrap with this shift offset
      Parameters:
      shiftOffset - The global shift offset to match
  • Method Details

    • format

      public void format(org.eclipse.xtext.formatting2.regionaccess.ITextSegment region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting wrapped, org.eclipse.xtext.formatting2.IFormattableDocument document)
      Specified by:
      format in interface org.eclipse.xtext.formatting2.IAutowrapFormatter
    • getShiftOffset

      public int getShiftOffset()
      Returns:
      the value of shiftOffset