Class FormattingConfig
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.AbstractFormattingConfig
-
- org.eclipse.xtext.formatting.impl.FormattingConfig
-
- Direct Known Subclasses:
FormattingConfig2
public class FormattingConfig extends AbstractFormattingConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFormattingConfig.IndentationLocatorEndclassFormattingConfig.IndentationLocatorStartclassFormattingConfig.LinewrapLocatorclassFormattingConfig.NoLinewrapLocatorclassFormattingConfig.NoSpaceLocatorclassFormattingConfig.SpaceLocator-
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting.impl.AbstractFormattingConfig
AbstractFormattingConfig.ElementBeforeAfterPattern, AbstractFormattingConfig.ElementBetweenPattern, AbstractFormattingConfig.ElementLocator, AbstractFormattingConfig.ElementPattern, AbstractFormattingConfig.LocatorType
-
-
Field Summary
Fields Modifier and Type Field Description protected intcharsPerLineprotected IIndentationInformationindentInfoprotected TerminalRulewhitespaceRuleDeprecated.protected intwrappedLineIndentation-
Fields inherited from class org.eclipse.xtext.formatting.impl.AbstractFormattingConfig
grammarAccess, hiddenTokenHelper, locatorsCommentAfter, locatorsCommentBefore, locatorsSemantic
-
-
Constructor Summary
Constructors Constructor Description FormattingConfig(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper, IIndentationInformation indentInfo)Deprecated.useFormattingConfig2instead
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetCharsPerLine()java.lang.StringgetIndentationSpace()TerminalRulegetWhitespaceRule()Deprecated.intgetWrappedLineIndentation()voidsetAutoLinewrap(int charsPerLine)voidsetIndentation(AbstractElement beginElement, AbstractElement endElement)FormattingConfig.IndentationLocatorEndsetIndentationDecrement()FormattingConfig.IndentationLocatorStartsetIndentationIncrement()FormattingConfig.LinewrapLocatorsetLinewrap()FormattingConfig.LinewrapLocatorsetLinewrap(int lines)FormattingConfig.LinewrapLocatorsetLinewrap(int minWraps, int defaultWraps, int maxWraps)FormattingConfig.NoLinewrapLocatorsetNoLinewrap()FormattingConfig.NoSpaceLocatorsetNoSpace()FormattingConfig.SpaceLocatorsetSpace(java.lang.String space)voidsetWhitespaceRule(TerminalRule rule)Deprecated.voidsetWrappedLineIndentation(int wrapIndent)-
Methods inherited from class org.eclipse.xtext.formatting.impl.AbstractFormattingConfig
addLocator, addLocatorComment, addLocatorSemantic, addLocatorSemantic, getAbstractElements, getLocatorsForCommentTokensAfter, getLocatorsForCommentTokensBefore, getLocatorsForSemanticTokens
-
-
-
-
Field Detail
-
charsPerLine
protected int charsPerLine
-
indentInfo
protected IIndentationInformation indentInfo
-
wrappedLineIndentation
protected int wrappedLineIndentation
- Since:
- 2.0
-
whitespaceRule
@Deprecated protected TerminalRule whitespaceRule
Deprecated.
-
-
Constructor Detail
-
FormattingConfig
@Deprecated public FormattingConfig(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper, IIndentationInformation indentInfo)
Deprecated.useFormattingConfig2instead
-
-
Method Detail
-
getWrappedLineIndentation
public int getWrappedLineIndentation()
- Since:
- 2.0
-
setWrappedLineIndentation
public void setWrappedLineIndentation(int wrapIndent)
- Since:
- 2.0
-
getWhitespaceRule
@Deprecated public TerminalRule getWhitespaceRule()
Deprecated.
-
setWhitespaceRule
@Deprecated public void setWhitespaceRule(TerminalRule rule)
Deprecated.
-
getCharsPerLine
public int getCharsPerLine()
-
getIndentationSpace
public java.lang.String getIndentationSpace()
-
setAutoLinewrap
public void setAutoLinewrap(int charsPerLine)
-
setIndentation
public void setIndentation(AbstractElement beginElement, AbstractElement endElement)
-
setIndentationIncrement
public FormattingConfig.IndentationLocatorStart setIndentationIncrement()
-
setIndentationDecrement
public FormattingConfig.IndentationLocatorEnd setIndentationDecrement()
-
setLinewrap
public FormattingConfig.LinewrapLocator setLinewrap()
-
setLinewrap
public FormattingConfig.LinewrapLocator setLinewrap(int lines)
-
setLinewrap
public FormattingConfig.LinewrapLocator setLinewrap(int minWraps, int defaultWraps, int maxWraps)
-
setNoLinewrap
public FormattingConfig.NoLinewrapLocator setNoLinewrap()
-
setNoSpace
public FormattingConfig.NoSpaceLocator setNoSpace()
-
setSpace
public FormattingConfig.SpaceLocator setSpace(java.lang.String space)
-
-