edu.rice.cs.drjava.model.definitions.indent
Class ActionDoNothing
java.lang.Object
edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
edu.rice.cs.drjava.model.definitions.indent.ActionDoNothing
- All Implemented Interfaces:
- IndentRule
public class ActionDoNothing
- extends IndentRuleAction
Indents the current line in the document to the indent level of the
start of the contract or statement of the brace enclosing the current
position, plus the given suffix.
- Version:
- $Id: ActionDoNothing.java 4419 2008-03-27 06:58:07Z rcartwright $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionDoNothing
public ActionDoNothing()
indentLine
public boolean indentLine(AbstractDJDocument doc,
Indenter.IndentReason reason)
- Properly indents the line that the caret is currently on. Replaces all whitespace characters at the
beginning of the line with the appropriate spacing or characters.
- Specified by:
indentLine
in interface IndentRule
- Overrides:
indentLine
in class IndentRuleWithTrace
- Parameters:
doc
- The AbstractDJDocument containing the line to be indented.reason
- The reason that the indentation is taking place
- Returns:
- true if the caller should update the current location itself,
false if the indenter has already handled this