Interface Preparator


  • public interface Preparator
    Strategy interface used by ExtendedCodeFormatter to allow additional code formatting before wrapping.
    Author:
    Phillip Webb
    • Method Detail

      • apply

        void apply​(int kind,
                   org.eclipse.jdt.internal.formatter.TokenManager tokenManager,
                   org.eclipse.jdt.core.dom.ASTNode astRoot)
        Apply the preparator.
        Parameters:
        kind - the format kind (see CodeFormatter.format(int, String, org.eclipse.jface.text.IRegion[], int, String) for details)
        tokenManager - the token manager
        astRoot - the AST root node