com.pvx.ooadide.editors.autoindent
Class PvxAutoIndentStrategy

java.lang.Object
  extended by org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
      extended by com.pvx.ooadide.editors.autoindent.PvxAutoIndentStrategy
All Implemented Interfaces:
org.eclipse.jface.text.IAutoEditStrategy

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

Auto indent strategy sensitive to brackets.


Constructor Summary
PvxAutoIndentStrategy(java.lang.String partitioning, org.eclipse.jdt.core.IJavaProject project)
          Creates a new Java 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

PvxAutoIndentStrategy

public PvxAutoIndentStrategy(java.lang.String partitioning,
                             org.eclipse.jdt.core.IJavaProject project)
Creates a new Java 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