Class RightQlFormatter

  • All Implemented Interfaces:
    org.eclipse.xtext.formatting.IFormatter, org.eclipse.xtext.formatting.IFormatterExtension

    public class RightQlFormatter
    extends QlFormatter
    This class contains custom formatting description. see : http://www.eclipse.org/Xtext/documentation.html#formatting on how and when to use it Also see org.eclipse.xtext.xtext.XtextFormattingTokenSerializer as an example
    • Constructor Detail

      • RightQlFormatter

        public RightQlFormatter()
    • Method Detail

      • createFormatterStream

        public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream​(String indent,
                                                                                       org.eclipse.xtext.parsetree.reconstr.ITokenStream out,
                                                                                       boolean preserveWhitespaces)
        Specified by:
        createFormatterStream in interface org.eclipse.xtext.formatting.IFormatter
        Overrides:
        createFormatterStream in class QlFormatter
      • createFormatterStream

        public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream​(org.eclipse.emf.ecore.EObject context,
                                                                                       String indent,
                                                                                       org.eclipse.xtext.parsetree.reconstr.ITokenStream out,
                                                                                       boolean preserveWhitespaces)
        Specified by:
        createFormatterStream in interface org.eclipse.xtext.formatting.IFormatterExtension
        Overrides:
        createFormatterStream in class QlFormatter
      • createFormattingConfig

        protected org.eclipse.xtext.formatting.impl.FormattingConfig createFormattingConfig()
        Overrides:
        createFormattingConfig in class QlFormatter
      • configureFormatting

        protected void configureFormatting​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Formating all part of query
        Overrides:
        configureFormatting in class QlFormatter
        Parameters:
        c - configuration
      • commonFormatRule

        protected void commonFormatRule​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Common rule of formatting (for punctuation)
        Overrides:
        commonFormatRule in class QlFormatter
        Parameters:
        c - configuration
      • formatQlRestriction

        protected void formatQlRestriction​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
      • formatPreprocessorRestriction

        protected void formatPreprocessorRestriction​(org.eclipse.xtext.formatting.impl.FormattingConfig c)