Package org.eclipse.m2m.atl.adt.ui.text
Class AtlReconcilingStrategy
java.lang.Object
org.eclipse.m2m.atl.adt.ui.text.AtlReconcilingStrategy
- All Implemented Interfaces:
org.eclipse.jface.text.reconciler.IReconcilingStrategy
,org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
public final class AtlReconcilingStrategy
extends Object
implements org.eclipse.jface.text.reconciler.IReconcilingStrategy, org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
This reconciling strategy will allow us to enable folding support in the Atl editor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<org.eclipse.jface.text.source.Annotation,
org.eclipse.jface.text.Position> This will hold the list of all annotations that have been added since the last reconciling.protected final Map<org.eclipse.jface.text.source.Annotation,
org.eclipse.jface.text.Position> Current known positions of foldable block.protected final List<org.eclipse.jface.text.source.Annotation>
This will hold the list of all annotations that have been removed since the last reconciling.protected final AtlEditor
Editor this provides folding support to.protected final Map<org.eclipse.jface.text.source.Annotation,
org.eclipse.jface.text.Position> This will hold the list of all annotations that have been modified since the last reconciling. -
Constructor Summary
ConstructorsConstructorDescriptionAtlReconcilingStrategy
(AtlEditor editor) Instantiates the reconciling strategy for a given editor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
reconcile
(org.eclipse.jface.text.IRegion partition) void
reconcile
(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion) void
setDocument
(org.eclipse.jface.text.IDocument document) void
setProgressMonitor
(org.eclipse.core.runtime.IProgressMonitor monitor)
-
Field Details
-
addedAnnotations
protected final Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> addedAnnotationsThis will hold the list of all annotations that have been added since the last reconciling. -
currentAnnotations
protected final Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> currentAnnotationsCurrent known positions of foldable block. -
deletedAnnotations
This will hold the list of all annotations that have been removed since the last reconciling. -
editor
Editor this provides folding support to. -
modifiedAnnotations
protected final Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> modifiedAnnotationsThis will hold the list of all annotations that have been modified since the last reconciling.
-
-
Constructor Details
-
AtlReconcilingStrategy
Instantiates the reconciling strategy for a given editor.- Parameters:
editor
- Editor which we seek to provide folding support for.
-
-
Method Details
-
initialReconcile
public void initialReconcile()- Specified by:
initialReconcile
in interfaceorg.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
- See Also:
-
IReconcilingStrategyExtension.initialReconcile()
-
reconcile
public void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion) - Specified by:
reconcile
in interfaceorg.eclipse.jface.text.reconciler.IReconcilingStrategy
- See Also:
-
IReconcilingStrategy.reconcile(org.eclipse.jface.text.reconciler.DirtyRegion, org.eclipse.jface.text.IRegion)
-
reconcile
public void reconcile(org.eclipse.jface.text.IRegion partition) - Specified by:
reconcile
in interfaceorg.eclipse.jface.text.reconciler.IReconcilingStrategy
- See Also:
-
IReconcilingStrategy.reconcile(org.eclipse.jface.text.IRegion)
-
setDocument
public void setDocument(org.eclipse.jface.text.IDocument document) - Specified by:
setDocument
in interfaceorg.eclipse.jface.text.reconciler.IReconcilingStrategy
- See Also:
-
IReconcilingStrategy.setDocument(org.eclipse.jface.text.IDocument)
-
setProgressMonitor
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
setProgressMonitor
in interfaceorg.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
- See Also:
-
IReconcilingStrategyExtension.setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor)
-