Class BslContentFormatter

  • All Implemented Interfaces:
    org.eclipse.jface.text.formatter.IContentFormatter

    public class BslContentFormatter
    extends org.eclipse.xtext.ui.editor.formatting2.ContentFormatter
    This class is ContentFormatter that performs faster applying of TextEdits by processing them not on IDocument, but on String and then setting String to document
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.formatting2.ContentFormatter

        org.eclipse.xtext.ui.editor.formatting2.ContentFormatter.FormattingUnitOfWork
    • Constructor Detail

      • BslContentFormatter

        public BslContentFormatter()
    • Method Detail

      • format

        public void format​(org.eclipse.jface.text.IDocument document,
                           org.eclipse.jface.text.IRegion region)
        Specified by:
        format in interface org.eclipse.jface.text.formatter.IContentFormatter
        Overrides:
        format in class org.eclipse.xtext.ui.editor.formatting2.ContentFormatter