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 $

Field Summary
private  String _suffix
           
 
Constructor Summary
ActionStartPrevLinePlus(String suffix)
          Repeats the indentation from the previous line, plus a string
 
Method Summary
 void indentLine(DefinitionsDocument doc)
          Indents the line according to the previous line, with the suffix string added.
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
indentLine
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_suffix

private String _suffix
Constructor Detail

ActionStartPrevLinePlus

public ActionStartPrevLinePlus(String suffix)
Repeats the indentation from the previous line, plus a string
Parameters:
suffix - The string to be added
Method Detail

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.