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()
IReconcilingStrategyExtension
initialReconcile
in interface IReconcilingStrategyExtension
public void reconcile(DirtyRegion dirtyRegion, IRegion subRegion)
IReconcilingStrategy
IReconcilingStrategy.setDocument(IDocument)
.reconcile
in interface IReconcilingStrategy
dirtyRegion
- the document region which has been changedsubRegion
- the sub region in the dirty region which should be reconciledpublic void reconcile(IRegion region)
IReconcilingStrategy
IReconcilingStrategy.setDocument(IDocument)
.reconcile
in interface IReconcilingStrategy
region
- the document partition to be reconciledprotected IContentType getContentType()
null
if none could be determinedprotected final IDocument getDocument()
public void setDocument(IDocument document)
IReconcilingStrategy
setDocument
in interface IReconcilingStrategy
document
- the document on which this strategy will workprotected ISpellingProblemCollector createSpellingProblemCollector()
null
if none is availablepublic final void setProgressMonitor(IProgressMonitor monitor)
IReconcilingStrategyExtension
setProgressMonitor
in interface IReconcilingStrategyExtension
monitor
- 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.