Class CustomFoldingStructureProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.folding.IFoldingStructureProvider, org.eclipse.xtext.ui.editor.model.IXtextModelListener

    public class CustomFoldingStructureProvider
    extends org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
    Supports initial collapsing of folded positions. Clients should bind this implementation of IFoldingStructureProvider (or its subclass) in the language-specific UI module. Clients may extend this class.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider

        org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider.ProjectionChangeListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.jface.text.source.projection.ProjectionAnnotation createProjectionAnnotation​(boolean allowInitiallyCollapse, org.eclipse.jface.text.Position position)  
      • Methods inherited from class org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider

        addProjectionAnnotation, calculateProjectionAnnotationModel, filterFoldedPositions, getLineNumber, handleProjectionDisabled, handleProjectionEnabled, initialize, install, isInstalled, mergeFoldingRegions, modelChanged, uninstall, updateFoldingRegions
    • Constructor Detail

      • CustomFoldingStructureProvider

        public CustomFoldingStructureProvider()
    • Method Detail

      • createProjectionAnnotation

        protected org.eclipse.jface.text.source.projection.ProjectionAnnotation createProjectionAnnotation​(boolean allowInitiallyCollapse,
                                                                                                           org.eclipse.jface.text.Position position)
        Overrides:
        createProjectionAnnotation in class org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider