Class BslFoldingStructureProvider

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

    public class BslFoldingStructureProvider
    extends org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
    Structure provider for BSL.

    This implementation autofolds code blocks on open editor. Users can configure folding rules through preferences.

    • 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)  
      void initialize()  
      void modelChanged​(org.eclipse.xtext.resource.XtextResource resource)  
      • Methods inherited from class org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider

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

      • BslFoldingStructureProvider

        public BslFoldingStructureProvider()
    • Method Detail

      • initialize

        public void initialize()
        Specified by:
        initialize in interface org.eclipse.xtext.ui.editor.folding.IFoldingStructureProvider
        Overrides:
        initialize in class org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
      • 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
      • modelChanged

        public void modelChanged​(org.eclipse.xtext.resource.XtextResource resource)
        Specified by:
        modelChanged in interface org.eclipse.xtext.ui.editor.model.IXtextModelListener
        Overrides:
        modelChanged in class org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider