Package com._1c.g5.v8.dt.bsl.ui.folding
Class BslFoldingStructureProvider
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
-
- com._1c.g5.v8.dt.bsl.ui.folding.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.
-
-
Constructor Summary
Constructors Constructor Description BslFoldingStructureProvider()
-
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
-
-
-
-
Method Detail
-
initialize
public void initialize()
- Specified by:
initialize
in interfaceorg.eclipse.xtext.ui.editor.folding.IFoldingStructureProvider
- Overrides:
initialize
in classorg.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 classorg.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
-
modelChanged
public void modelChanged(org.eclipse.xtext.resource.XtextResource resource)
- Specified by:
modelChanged
in interfaceorg.eclipse.xtext.ui.editor.model.IXtextModelListener
- Overrides:
modelChanged
in classorg.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider
-
-