Package com.e1c.g5.v8.dt.formatter.bsl
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 byBslWhitespaceReplacer
. This one just carries some information.
-
-
Constructor Summary
Constructors Constructor Description BslWrapWithIndentByOffset(int shiftOffset)
Creates late calculated shoft wrap with this shift offset
-
Method Summary
All Methods Instance Methods Concrete Methods 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
getShiftOffset()
-
-
-
Method Detail
-
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 interfaceorg.eclipse.xtext.formatting2.IAutowrapFormatter
-
getShiftOffset
public int getShiftOffset()
- Returns:
- the value of
shiftOffset
-
-