| 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.ActionStartPrevLinePlusMultilinePreserve
ActionStartPrevLinePlusMultilinePreserve | class ActionStartPrevLinePlusMultilinePreserve extends IndentRuleAction (Code) | | Indents the current line in the document to the indent level of the
start of the previous line, preserving any text on the current line,
and adds several lines of text at that indent level,
and moves the cursor to a particular line and position.
version: $Id: ActionStartPrevLinePlusMultilinePreserve.java 4255 2007-08-28 19:17:37Z mgricken $ |
ActionStartPrevLinePlusMultilinePreserve | public ActionStartPrevLinePlusMultilinePreserve(String suffices, int cursorLine, int cursorPos, int psrvLine, int psrvPos)(Code) | | Creates a multiline insert rule, properly preserving any text on current line.
Parameters: suffices - the new lines to be added Parameters: cursorLine - the line on which to place the cursor Parameters: cursorPos - the character within the line string before which to placethe cursor Parameters: psrvLine - the line in suffices on which to place the preserved text Parameters: psrvPos - the character within the line string in suffices before whichto place the preserved text throws: IllegalArgumentException - if the integer params are negative oroutside the appropriate bounds |
indentLine | public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Forwards the call to the enclosed ActionStartPrevLinePlusMultiline _a
Parameters: doc - AbstractDJDocument containing the line to be indented. Parameters: reason - The reason that the indentation is taking place this is always false, since we are updating the cursor location |
|
|