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 java.lang.Object implements org.eclipse.jface.text.reconciler.IReconcilingStrategy, org.eclipse.jface.text.reconciler.IReconcilingStrategyExtensionThis reconciling strategy will allow us to enable folding support in the Atl editor.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.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.protected java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position>currentAnnotationsCurrent known positions of foldable block.protected java.util.List<org.eclipse.jface.text.source.Annotation>deletedAnnotationsThis will hold the list of all annotations that have been removed since the last reconciling.protected AtlEditoreditorEditor this provides folding support to.protected java.util.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 Summary
Constructors Constructor Description AtlReconcilingStrategy(AtlEditor editor)Instantiates the reconciling strategy for a given editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialReconcile()voidreconcile(org.eclipse.jface.text.IRegion partition)voidreconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion)voidsetDocument(org.eclipse.jface.text.IDocument document)voidsetProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
-
-
-
Field Detail
-
addedAnnotations
protected final java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> addedAnnotations
This will hold the list of all annotations that have been added since the last reconciling.
-
currentAnnotations
protected final java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> currentAnnotations
Current known positions of foldable block.
-
deletedAnnotations
protected final java.util.List<org.eclipse.jface.text.source.Annotation> deletedAnnotations
This will hold the list of all annotations that have been removed since the last reconciling.
-
editor
protected final AtlEditor editor
Editor this provides folding support to.
-
modifiedAnnotations
protected final java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> modifiedAnnotations
This will hold the list of all annotations that have been modified since the last reconciling.
-
-
Constructor Detail
-
AtlReconcilingStrategy
public AtlReconcilingStrategy(AtlEditor editor)
Instantiates the reconciling strategy for a given editor.- Parameters:
editor- Editor which we seek to provide folding support for.
-
-
Method Detail
-
initialReconcile
public void initialReconcile()
- Specified by:
initialReconcilein 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:
reconcilein 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:
reconcilein 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:
setDocumentin 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:
setProgressMonitorin interfaceorg.eclipse.jface.text.reconciler.IReconcilingStrategyExtension- See Also:
IReconcilingStrategyExtension.setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor)
-
-