public class SpellingReconcileStrategy extends Object implements IReconcilingStrategy, IReconcilingStrategyExtension
| Constructor and Description |
|---|
SpellingReconcileStrategy(ISourceViewer viewer,
SpellingService spellingService)
Creates a new comment reconcile strategy.
|
| Modifier and Type | Method and Description |
|---|---|
protected ISpellingProblemCollector |
createSpellingProblemCollector()
Creates a new spelling problem collector.
|
protected IAnnotationModel |
getAnnotationModel()
Returns the annotation model to be used by this reconcile strategy.
|
protected IContentType |
getContentType()
Returns the content type of the underlying editor input.
|
protected IDocument |
getDocument()
Returns the document which is spell checked.
|
void |
initialReconcile()
Called only once in the life time of this reconciling strategy.
|
void |
reconcile(DirtyRegion dirtyRegion,
IRegion subRegion)
Activates incremental reconciling of the specified dirty region.
|
void |
reconcile(IRegion region)
Activates non-incremental reconciling.
|
void |
setDocument(IDocument document)
Tells this reconciling strategy on which document it will
work.
|
void |
setProgressMonitor(IProgressMonitor monitor)
Tells this reconciling strategy with which progress monitor
it will work.
|
public SpellingReconcileStrategy(ISourceViewer viewer, SpellingService spellingService)
viewer - the source viewerspellingService - the spelling service to usepublic void initialReconcile()
IReconcilingStrategyExtensioninitialReconcile in interface IReconcilingStrategyExtensionpublic void reconcile(DirtyRegion dirtyRegion, IRegion subRegion)
IReconcilingStrategyIReconcilingStrategy.setDocument(IDocument).reconcile in interface IReconcilingStrategydirtyRegion - the document region which has been changedsubRegion - the sub region in the dirty region which should be reconciledpublic void reconcile(IRegion region)
IReconcilingStrategyIReconcilingStrategy.setDocument(IDocument).reconcile in interface IReconcilingStrategyregion - the document partition to be reconciledprotected IContentType getContentType()
null if none could be determinedprotected final IDocument getDocument()
public void setDocument(IDocument document)
IReconcilingStrategysetDocument in interface IReconcilingStrategydocument - the document on which this strategy will workprotected ISpellingProblemCollector createSpellingProblemCollector()
null if none is availablepublic final void setProgressMonitor(IProgressMonitor monitor)
IReconcilingStrategyExtensionsetProgressMonitor in interface IReconcilingStrategyExtensionmonitor - the progress monitor with which this strategy will workprotected IAnnotationModel getAnnotationModel()
null if none could be determined
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.