| org.gjt.sp.jedit.indent.IndentAction
IndentAction | public interface IndentAction (Code) | | author: Slava Pestov version: $Id: IndentAction.java 9524 2007-05-10 14:51:01Z k_satoda $ |
Field Summary | |
Collapse | PrevCollapse | Collapse | PrevPrevCollapse This handles cases like:
if (foo)
bar;
for (something; condition; action) {
}
Without this the "for" line would be incorrectly indented. |
PrevCollapse | Collapse PrevCollapse(Code) | | This handles the following Java code:
if(something)
{ // no indentation on this line, even though previous matches a rule
|
PrevPrevCollapse | Collapse PrevPrevCollapse(Code) | | This handles cases like:
if (foo)
bar;
for (something; condition; action) {
}
Without this the "for" line would be incorrectly indented.
|
calculateIndent | int calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)(Code) | | Parameters: buffer - The buffer Parameters: line - The line number that matched the rule; not necessarilythe line being indented. Parameters: oldIndent - Original indent. Parameters: newIndent - The new indent -- ie, indent returned by previousindent action. |
keepChecking | boolean keepChecking()(Code) | | true if the indent engine should keep processing afterthis rule. |
|
|