IndentAction.AlignOffset
, IndentAction.AlignParameter
, IndentAction.Collapse
, IndentAction.Decrease
, IndentAction.Increase
, IndentAction.NoIncrease
, IndentAction.Reset
public interface IndentAction
Modifier and Type | Interface | Description |
---|---|---|
static class |
IndentAction.AlignOffset |
|
static class |
IndentAction.AlignParameter |
Indent action used for deep indent.
|
static class |
IndentAction.Collapse |
See comments for each instance of this class below.
|
static class |
IndentAction.Decrease |
|
static class |
IndentAction.Increase |
|
static class |
IndentAction.NoIncrease |
Used to cancel increases in indentation.
|
static class |
IndentAction.Reset |
Modifier and Type | Field | Description |
---|---|---|
static IndentAction.Collapse |
PrevCollapse |
This handles the following Java code:
if(something)
{ // no indentation on this line, even though previous matches a rule
|
static IndentAction.Collapse |
PrevPrevCollapse |
This handles cases like:
if (foo)
bar;
for (something; condition; action) {
}
Without this the "for" line would be incorrectly indented.
|
Modifier and Type | Method | Description |
---|---|---|
int |
calculateIndent(JEditBuffer buffer,
int line,
int oldIndent,
int newIndent) |
|
boolean |
keepChecking() |
static final IndentAction.Collapse PrevCollapse
static final IndentAction.Collapse PrevPrevCollapse
int calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)
buffer
- The bufferline
- The line number that matched the rule; not necessarily
the line being indented.oldIndent
- Original indent.newIndent
- The new indent -- ie, indent returned by previous
indent action.boolean keepChecking()