public IDocumentAutoFormatter getDocumentAutoFormatter ( ) { final IDocument document = getDocument ( ) ; if ( document instanceof IXtextDocument ) { final IDocumentAutoFormatter formatter = this . autoFormatterProvider . get ( ) ; formatter . bind ( ( IXtextDocument ) document , this . fContentFormatter ) ; return formatter ; } return new IDocumentAutoFormatter ( ) { // } ; }
Replies the document auto - formatter .