Class QlFoldingRegionProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.folding.IFoldingRegionProvider
    Direct Known Subclasses:
    QlDcsFoldingRegionProvider

    public class QlFoldingRegionProvider
    extends org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider
    Folding for Ql
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider

        TEXT_PATTERN_IN_COMMENT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void computeObjectFolding​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
      Compute folding for each of eObject
      protected void foldingForJoins​(QuerySchemaSource source, org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
      protected void foldingForOperator​(QuerySchemaOperator operator, int startLineOfQuery, org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
      protected void foldingForQuery​(QuerySchemaSelectQuery query, org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
      protected void simpleFolding​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
      Folding by border of eObject's node
      • Methods inherited from class org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider

        computeCommentFolding, computeCommentFolding, computeObjectFolding, computeObjectFolding, createAcceptor, doGetFoldingRegions, getFoldingRegions, getLocationInFileProvider, getTextPatternInComment, isHandled, shouldProcessContent
    • Constructor Detail

      • QlFoldingRegionProvider

        public QlFoldingRegionProvider()
    • Method Detail

      • computeObjectFolding

        protected void computeObjectFolding​(org.eclipse.emf.ecore.EObject eObject,
                                            org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
        Compute folding for each of eObject
        Overrides:
        computeObjectFolding in class org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider
        Parameters:
        eObject - - object from model which maybe have folding
        foldingRegionAcceptor - - contains information about folding for all objects
      • simpleFolding

        protected void simpleFolding​(org.eclipse.emf.ecore.EObject eObject,
                                     org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
        Folding by border of eObject's node
        Parameters:
        eObject - - object from model which have folding
        foldingRegionAcceptor - - contains information about folding for all objects
      • foldingForQuery

        protected void foldingForQuery​(QuerySchemaSelectQuery query,
                                       org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
        Parameters:
        query -
        foldingRegionAcceptor - - contains information about folding for all objects
      • foldingForOperator

        protected void foldingForOperator​(QuerySchemaOperator operator,
                                          int startLineOfQuery,
                                          org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
        Parameters:
        operator -
        startLineOfQuery - - line number of query which contains operator
        foldingRegionAcceptor - - contains information about folding for all objects
      • foldingForJoins

        protected void foldingForJoins​(QuerySchemaSource source,
                                       org.eclipse.xtext.ui.editor.folding.IFoldingRegionAcceptor<org.eclipse.xtext.util.ITextRegion> foldingRegionAcceptor)
        Parameters:
        source -
        foldingRegionAcceptor - - contains information about folding for all objects