org.eclipse.cdt.internal.ui.text
Class CStringAutoIndentStrategy
java.lang.Object
org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
org.eclipse.cdt.internal.ui.text.CStringAutoIndentStrategy
- All Implemented Interfaces:
- org.eclipse.jface.text.IAutoEditStrategy
public class CStringAutoIndentStrategy
- extends org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
Auto indent strategy for C strings
Constructor Summary |
CStringAutoIndentStrategy(java.lang.String partitioning,
org.eclipse.cdt.core.model.ICProject project)
Creates a new C string auto indent strategy for the given document partitioning. |
Method Summary |
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CStringAutoIndentStrategy
public CStringAutoIndentStrategy(java.lang.String partitioning,
org.eclipse.cdt.core.model.ICProject project)
- Creates a new C string auto indent strategy for the given document partitioning.
- Parameters:
partitioning
- the document partitioning
customizeDocumentCommand
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
- Specified by:
customizeDocumentCommand
in interface org.eclipse.jface.text.IAutoEditStrategy
- Overrides:
customizeDocumentCommand
in class org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy