|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Spacing | |
|---|---|
| com.intellij.formatting | Provides interfaces which allow to implement code formatters for custom languages. |
| Uses of Spacing in com.intellij.formatting |
|---|
| Methods in com.intellij.formatting that return Spacing | |
|---|---|
static Spacing |
Spacing.createDependentLFSpacing(int minSpaces,
int maxSpaces,
TextRange dependance,
boolean keepLineBreaks,
int keepBlankLines)
Creates a spacing setting instance which inserts a line break if the specified text range also contains a line break. |
static Spacing |
Spacing.createKeepingFirstColumnSpacing(int minSpaces,
int maxSpaces,
boolean keepLineBreaks,
int keepBlankLines)
Creates a spacing setting instance that keeps the second child on the first column if it was there before the formatting, but may indent the second child if it was not in the first column. |
static Spacing |
Spacing.createSafeSpacing(boolean keepLineBreaks,
int keepBlankLines)
Creates a spacing setting instance which preserves the presence of spaces between the blocks but, if spaces are present, may insert or delete the spaces. |
static Spacing |
Spacing.createSpacing(int minSpaces,
int maxSpaces,
int minLineFeeds,
boolean keepLineBreaks,
int keepBlankLines)
Creates a regular spacing setting instance. |
static Spacing |
Spacing.getReadOnlySpacing()
Returns a spacing setting instance indicating that no line breaks or spaces can be inserted or removed by the formatter between the specified two blocks. |
Spacing |
Block.getSpacing(Block child1,
Block child2)
Returns a spacing object indicating what spaces and/or line breaks are added between two specified children of this block. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||