Package com.e1c.g5.v8.dt.formatter.bsl
Class BslHiddenRegionReplacer
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
-
- com.e1c.g5.v8.dt.formatter.bsl.BslHiddenRegionReplacer
-
- All Implemented Interfaces:
org.eclipse.xtext.formatting2.ITextReplacer
public class BslHiddenRegionReplacer extends org.eclipse.xtext.formatting2.internal.HiddenRegionReplacerThis class is extension ofHiddenRegionReplacerthat does not format comment subregions or any subregions of hidden region that are previous to comment subregions. Also contains information about wrap groups(wrap group is group of regions that are wrapped entirely or not wrapped at all)
-
-
Constructor Summary
Constructors Constructor Description BslHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting)Creates new instance by calling super's constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.formatting2.ITextReplacerContextcreateReplacements(org.eclipse.xtext.formatting2.ITextReplacerContext context)intgetGroupID()Gets thegroupIDvaluevoidsetGroupID(int groupID)Set's thegroupIDfieldStringtoString()-
Methods inherited from class org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
applyHiddenRegionFormatting, applyIndentation, applyPriorityAndDefaultFormatting, applySeparatorConfiguration, createReplacers, findWhitespaceThatSeparatesSemanticRegions, getFormatting, getRegion, introduceNewlinesAroundMLComments
-
-
-
-
Constructor Detail
-
BslHiddenRegionReplacer
public BslHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting)Creates new instance by calling super's constructor- Parameters:
region- The region to perform on, cannot benullformatting- The formatting that provides formatting information, cannot benull
-
-
Method Detail
-
createReplacements
public org.eclipse.xtext.formatting2.ITextReplacerContext createReplacements(org.eclipse.xtext.formatting2.ITextReplacerContext context)
- Specified by:
createReplacementsin interfaceorg.eclipse.xtext.formatting2.ITextReplacer- Overrides:
createReplacementsin classorg.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
-
setGroupID
public void setGroupID(int groupID)
Set's thegroupIDfield- Parameters:
groupID- The value to set
-
toString
public String toString()
- Overrides:
toStringin classorg.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
-
-