Package org.eclipse.xtext.formatting2
Interface IHiddenRegionFormatting
-
- All Known Implementing Classes:
HiddenRegionFormatting
public interface IHiddenRegionFormattingHiddenRegionFormatting specifies formatting information for a HiddenRegion. A HiddenRegion is the group of all hidden tokens (whitespace and comments) between to non-hidden tokens.
HiddenRegionFormattings can sometimes be automatically
mergedwhen two different formattings are registered for the same region in anIFormattableDocument.- Since:
- 2.8
- See Also:
IHiddenRegionFormatter- Noextend:
- This interface is not intended to be extended by clients, use
HiddenRegionFormatting - Noimplement:
- This interface is not intended to be implemented by clients, use
HiddenRegionFormatting
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetAutowrap()java.lang.IntegergetIndentationDecrease()java.lang.IntegergetIndentationIncrease()java.lang.IntegergetNewLineDefault()java.lang.IntegergetNewLineMax()java.lang.IntegergetNewLineMin()java.lang.BooleangetNoIndentation()IAutowrapFormattergetOnAutowrap()intgetPriority()FormatterRequestgetRequest()java.lang.StringgetSpace()voidmergeValuesFrom(IHiddenRegionFormatting other)voidsetAutowrap(java.lang.Integer value)voidsetIndentationDecrease(java.lang.Integer indentation)voidsetIndentationIncrease(java.lang.Integer indentation)voidsetNewLinesDefault(java.lang.Integer newLines)voidsetNewLinesMax(java.lang.Integer newLines)voidsetNewLinesMin(java.lang.Integer newLines)voidsetNoIndentation(java.lang.Boolean value)voidsetOnAutowrap(IAutowrapFormatter formatter)voidsetPriority(int priority)voidsetSpace(java.lang.String space)
-
-
-
Method Detail
-
mergeValuesFrom
void mergeValuesFrom(IHiddenRegionFormatting other) throws ConflictingFormattingException
- Throws:
ConflictingFormattingException
-
getAutowrap
java.lang.Integer getAutowrap()
-
getIndentationDecrease
java.lang.Integer getIndentationDecrease()
-
getIndentationIncrease
java.lang.Integer getIndentationIncrease()
-
getNewLineDefault
java.lang.Integer getNewLineDefault()
-
getNewLineMax
java.lang.Integer getNewLineMax()
-
getNewLineMin
java.lang.Integer getNewLineMin()
-
getNoIndentation
java.lang.Boolean getNoIndentation()
-
getOnAutowrap
IAutowrapFormatter getOnAutowrap()
-
getPriority
int getPriority()
-
getRequest
FormatterRequest getRequest()
-
getSpace
java.lang.String getSpace()
-
setAutowrap
void setAutowrap(java.lang.Integer value)
-
setIndentationDecrease
void setIndentationDecrease(java.lang.Integer indentation)
-
setIndentationIncrease
void setIndentationIncrease(java.lang.Integer indentation)
-
setNewLinesDefault
void setNewLinesDefault(java.lang.Integer newLines)
-
setNewLinesMax
void setNewLinesMax(java.lang.Integer newLines)
-
setNewLinesMin
void setNewLinesMin(java.lang.Integer newLines)
-
setNoIndentation
void setNoIndentation(java.lang.Boolean value)
-
setOnAutowrap
void setOnAutowrap(IAutowrapFormatter formatter)
-
setPriority
void setPriority(int priority)
-
setSpace
void setSpace(java.lang.String space)
-
-