Package org.eclipse.xtext.formatting2
Interface IHiddenRegionFormatting
-
- All Known Implementing Classes:
HiddenRegionFormatting
public interface IHiddenRegionFormatting
HiddenRegionFormatting 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
merged
when 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.Integer
getAutowrap()
java.lang.Integer
getIndentationDecrease()
java.lang.Integer
getIndentationIncrease()
java.lang.Integer
getNewLineDefault()
java.lang.Integer
getNewLineMax()
java.lang.Integer
getNewLineMin()
java.lang.Boolean
getNoIndentation()
IAutowrapFormatter
getOnAutowrap()
int
getPriority()
FormatterRequest
getRequest()
java.lang.String
getSpace()
void
mergeValuesFrom(IHiddenRegionFormatting other)
void
setAutowrap(java.lang.Integer value)
void
setIndentationDecrease(java.lang.Integer indentation)
void
setIndentationIncrease(java.lang.Integer indentation)
void
setNewLinesDefault(java.lang.Integer newLines)
void
setNewLinesMax(java.lang.Integer newLines)
void
setNewLinesMin(java.lang.Integer newLines)
void
setNoIndentation(java.lang.Boolean value)
void
setOnAutowrap(IAutowrapFormatter formatter)
void
setPriority(int priority)
void
setSpace(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)
-
-