org.eclipse.cdt.internal.ui.text
Class CAutoIndentStrategy

java.lang.Object
  extended by org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
      extended by org.eclipse.cdt.internal.ui.text.CAutoIndentStrategy
All Implemented Interfaces:
org.eclipse.jface.text.IAutoEditStrategy

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

Auto indent strategy sensitive to brackets.


Constructor Summary
CAutoIndentStrategy(java.lang.String partitioning, org.eclipse.cdt.core.model.ICProject project)
          Creates a new C 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

CAutoIndentStrategy

public CAutoIndentStrategy(java.lang.String partitioning,
                           org.eclipse.cdt.core.model.ICProject project)
Creates a new C auto indent strategy for the given document partitioning.

Parameters:
partitioning - the document partitioning
project - the project to get formatting preferences from, or null to use default preferences
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