edu.rice.cs.drjava.model.definitions.indent
Class ActionDoNothing

java.lang.Object
  |
  +--edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
        |
        +--edu.rice.cs.drjava.model.definitions.indent.ActionDoNothing
All Implemented Interfaces:
IndentRule

public class ActionDoNothing
extends IndentRuleAction

Indents the current line in the document to the indent level of the start of the contract or statement of the brace enclosing the current position, plus the given suffix.

Version:
$Id: ActionDoNothing.java,v 1.5 2002/03/30 06:19:12 csreis Exp $

Constructor Summary
ActionDoNothing()
          Constructs a new rule to do nothing.
 
Method Summary
 void indentLine(DefinitionsDocument doc)
          Properly indents the line that the caret is currently on.
 
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
 

Constructor Detail

ActionDoNothing

public ActionDoNothing()
Constructs a new rule to do nothing.
Method Detail

indentLine

public void indentLine(DefinitionsDocument doc)
Properly indents the line that the caret is currently on. Replaces all whitespace characters at the beginning of the line with the appropriate spacing or characters.
Overrides:
indentLine in class IndentRuleAction
Parameters:
doc - DefinitionsDocument containing the line to be indented.