Class CustomContentFormatterFactory

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.formatting.IContentFormatterFactory

    public class CustomContentFormatterFactory
    extends org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory
    Special ContentFormatterFactory created CustomContentFormatterFactory.CustomContentFormatter for formatting text in the document
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  CustomContentFormatterFactory.CustomContentFormatter
      Special ContentFormatterFactory.ContentFormatter with applying text changes after formatting through EmbeddedEditorBuffer
      • Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory

        org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory.ContentFormatter, org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory.FormattingUnitOfWork
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory

        formatter
    • Constructor Detail

      • CustomContentFormatterFactory

        public CustomContentFormatterFactory()
    • Method Detail

      • createConfiguredFormatter

        public org.eclipse.jface.text.formatter.IContentFormatter createConfiguredFormatter​(org.eclipse.jface.text.source.SourceViewerConfiguration configuration,
                                                                                            org.eclipse.jface.text.source.ISourceViewer sourceViewer)
        Specified by:
        createConfiguredFormatter in interface org.eclipse.xtext.ui.editor.formatting.IContentFormatterFactory
        Overrides:
        createConfiguredFormatter in class org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory