org.eclipse.xtext.ui.editor.reconciler
Class XtextSpellingReconcileStrategy

java.lang.Object
  extended by org.eclipse.ui.texteditor.spelling.SpellingReconcileStrategy
      extended by org.eclipse.xtext.ui.editor.reconciler.XtextSpellingReconcileStrategy
All Implemented Interfaces:
org.eclipse.jface.text.reconciler.IReconcilingStrategy, org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension

public class XtextSpellingReconcileStrategy
extends org.eclipse.ui.texteditor.spelling.SpellingReconcileStrategy

Since:
2.3
Author:
Michael Clay - Initial contribution and API

Nested Class Summary
static class XtextSpellingReconcileStrategy.Factory
           
 
Constructor Summary
protected XtextSpellingReconcileStrategy(org.eclipse.jface.text.source.ISourceViewer viewer)
           
 
Method Summary
protected  org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset, int length, java.lang.String partitionType)
           
protected  boolean isSpellingEnabled()
           
 void reconcile(org.eclipse.jface.text.IRegion region)
           
 void setDocument(org.eclipse.jface.text.IDocument document)
           
protected  boolean shouldProcess(org.eclipse.jface.text.ITypedRegion typedRegion)
           
 
Methods inherited from class org.eclipse.ui.texteditor.spelling.SpellingReconcileStrategy
createSpellingProblemCollector, getAnnotationModel, getContentType, getDocument, initialReconcile, reconcile, setProgressMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextSpellingReconcileStrategy

protected XtextSpellingReconcileStrategy(org.eclipse.jface.text.source.ISourceViewer viewer)
Method Detail

setDocument

public void setDocument(org.eclipse.jface.text.IDocument document)
Specified by:
setDocument in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
Overrides:
setDocument in class org.eclipse.ui.texteditor.spelling.SpellingReconcileStrategy

reconcile

public void reconcile(org.eclipse.jface.text.IRegion region)
Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
Overrides:
reconcile in class org.eclipse.ui.texteditor.spelling.SpellingReconcileStrategy

computePartitioning

protected org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset,
                                                                    int length,
                                                                    java.lang.String partitionType)

shouldProcess

protected boolean shouldProcess(org.eclipse.jface.text.ITypedRegion typedRegion)

isSpellingEnabled

protected boolean isSpellingEnabled()