| 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.ActionStartPrevLinePlusMultiline
ActionStartPrevLinePlusMultiline | class ActionStartPrevLinePlusMultiline extends IndentRuleAction (Code) | | Indents the current line in the document to the indent level of the
start of the previous line, adds several lines of text at that indent level,
and moves the cursor to a particular line and position.
version: $Id: ActionStartPrevLinePlusMultiline.java 4255 2007-08-28 19:17:37Z mgricken $ |
ActionStartPrevLinePlusMultiline | public ActionStartPrevLinePlusMultiline(String suffices, int line, int position)(Code) | | Creates a multiline insert rule. It should be noted that although the suffices
are referred to as "lines", this class simply appends the strings with a
number of spaces for padding. Any newline characters you intend to place
in the document must be explicitly placed within the input strings.
Typically, all but the last "line" will have a '\n' character at the end.
Parameters: suffices - the new lines to be added Parameters: line - the line on which to place the cursor Parameters: position - the character within the line string before which to placethe cursor throws: IllegalArgumentException - if the integer params are negative oroutside the appropriate bounds |
indentLine | public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Indents the line according to the previous line, with the suffix lines added
and the cursor moved to a specific location.
If on the first line, indent is set to 0.
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 |
|
|