edu.rice.cs.drjava.model.definitions.indent
Class ActionStartPrevLinePlus
java.lang.Object
|
+--edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
|
+--edu.rice.cs.drjava.model.definitions.indent.ActionStartPrevLinePlus
- All Implemented Interfaces:
- IndentRule
- class ActionStartPrevLinePlus
- extends IndentRuleAction
Indents the current line in the document to the indent level of the
start of the previous line, plus the given suffix.
- Version:
- $Id: ActionStartPrevLinePlus.java,v 1.6 2002/03/30 06:19:12 csreis Exp $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_suffix
private String _suffix
ActionStartPrevLinePlus
public ActionStartPrevLinePlus(String suffix)
- Repeats the indentation from the previous line, plus a string
- Parameters:
suffix
- The string to be added
indentLine
public void indentLine(DefinitionsDocument doc)
- Indents the line according to the previous line, with the suffix string added.
If on the first line, indent is set to 0.
- Overrides:
indentLine
in class IndentRuleAction
- Parameters:
doc
- DefinitionsDocument containing the line to be indented.