| 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.ActionStartPrevLinePlusBackup
ActionStartPrevLinePlusBackup | class ActionStartPrevLinePlusBackup extends IndentRuleAction (Code) | | Indents the current line in the document to the indent level of the
start of the previous line, plus the given suffix, then backs up to a
specific cursor position.
version: $Id: ActionStartPrevLinePlusBackup.java 4255 2007-08-28 19:17:37Z mgricken $ |
Constructor Summary | |
public | ActionStartPrevLinePlusBackup(String suffix, int position) Rule that repeats the indentation from the previous line, plus a string,
then moves the cursor to a specified location. |
ActionStartPrevLinePlusBackup | public ActionStartPrevLinePlusBackup(String suffix, int position)(Code) | | Rule that repeats the indentation from the previous line, plus a string,
then moves the cursor to a specified location.
Parameters: suffix - The string to be added Parameters: position - the character within the suffix string before which toplace the cursor throws: IllegalArgumentException - if the position is negative oroutside the bounds of the suffix string |
indentLine | public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Indents the line according to the previous line, with the suffix string added,
then backs up the cursor position a number of characters.
If on the first line, indent is set to 0.
Parameters: doc - AbstractDJDocument containing the line to be indented. Parameters: The - reason that the indentation is taking place this is always false, since we are updating the cursor location |
|
|