org.eclipse.mofscript.editor
Class MofScriptAutoIndentStrategy

java.lang.Object
  extended by org.eclipse.mofscript.editor.MofScriptAutoIndentStrategy
All Implemented Interfaces:
org.eclipse.jface.text.IAutoEditStrategy

public class MofScriptAutoIndentStrategy
extends java.lang.Object
implements org.eclipse.jface.text.IAutoEditStrategy

Auto indent strategy sensitive to brackets.

Author:
jol

Constructor Summary
MofScriptAutoIndentStrategy(MofScriptConfiguration configuration)
           
 
Method Summary
 void customizeDocumentCommand(org.eclipse.jface.text.IDocument d, org.eclipse.jface.text.DocumentCommand c)
          Looks for bracket or * inserts and triggers smart inserts
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MofScriptAutoIndentStrategy

public MofScriptAutoIndentStrategy(MofScriptConfiguration configuration)
Method Detail

customizeDocumentCommand

public void customizeDocumentCommand(org.eclipse.jface.text.IDocument d,
                                     org.eclipse.jface.text.DocumentCommand c)
Looks for bracket or * inserts and triggers smart inserts

Specified by:
customizeDocumentCommand in interface org.eclipse.jface.text.IAutoEditStrategy
Parameters:
d -
c -