|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
edu.rice.cs.drjava.model.definitions.indent.ActionBracePlus
public class ActionBracePlus
Aligns indentation of the current line to the character that opened the enclosing block or expression list. Optional additional whitespaces can be passed through the constructor.
| Field Summary | |
|---|---|
private int |
_suffixCt
int holding the number of additional blanks to be inserted. |
| Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace |
|---|
NO, TERMINUS_RULE, YES |
| Constructor Summary | |
|---|---|
ActionBracePlus(int ct)
|
|
| Method Summary | |
|---|---|
boolean |
indentLine(AbstractDJDocument doc,
Indenter.IndentReason reason)
Properly indents the line that the caret is currently on. |
| Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace |
|---|
_addToIndentTrace, getRuleName, getTrace, indentLine, printLastIndentTrace, setRuleTraceEnabled, testIndentLine, testIndentLine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int _suffixCt
| Constructor Detail |
|---|
public ActionBracePlus(int ct)
ct - The additional whitespaces to be inserted.| Method Detail |
|---|
public boolean indentLine(AbstractDJDocument doc,
Indenter.IndentReason reason)
Preconditions: must be inside a brace.
indentLine in interface IndentRuleindentLine in class IndentRuleWithTracedoc - AbstractDJDocument containing the line to be indented.reason - The reason that indentation was initiated, specified in Indenter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||