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 by
BslWhitespaceReplacer
. This one just carries some
information.-
Constructor Summary
ConstructorsConstructorDescriptionBslWrapWithIndentByOffset
(int shiftOffset) Creates late calculated shoft wrap with this shift offset -
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(org.eclipse.xtext.formatting2.regionaccess.ITextSegment region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting wrapped, org.eclipse.xtext.formatting2.IFormattableDocument document) int
-
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 interfaceorg.eclipse.xtext.formatting2.IAutowrapFormatter
-
getShiftOffset
public int getShiftOffset()- Returns:
- the value of
shiftOffset
-