org.eclipse.datatools.sqltools.sqleditor.internal.indent
Class SQLAutoIndentStrategy

java.lang.Object
  extended by org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
      extended by org.eclipse.datatools.sqltools.sqleditor.internal.indent.SQLAutoIndentStrategy
All Implemented Interfaces:
org.eclipse.jface.text.IAutoEditStrategy

public class SQLAutoIndentStrategy
extends org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy

Author:
Li Huang

Constructor Summary
SQLAutoIndentStrategy(java.lang.String partitioning)
          Creates a new SQL auto indent strategy for the given document partitioning.
 
Method Summary
 void customizeDocumentCommand(org.eclipse.jface.text.IDocument d, org.eclipse.jface.text.DocumentCommand c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLAutoIndentStrategy

public SQLAutoIndentStrategy(java.lang.String partitioning)
Creates a new SQL auto indent strategy for the given document partitioning.

Parameters:
partitioning - the document partitioning
Method Detail

customizeDocumentCommand

public void customizeDocumentCommand(org.eclipse.jface.text.IDocument d,
                                     org.eclipse.jface.text.DocumentCommand c)
Specified by:
customizeDocumentCommand in interface org.eclipse.jface.text.IAutoEditStrategy
Overrides:
customizeDocumentCommand in class org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy