org.eclipse.mylar.internal.tasks.ui.editors
Class TaskSpellingReconcileStrategy

java.lang.Object
  extended by org.eclipse.mylar.internal.tasks.ui.editors.TaskSpellingReconcileStrategy
All Implemented Interfaces:
org.eclipse.jface.text.reconciler.IReconcilerExtension, org.eclipse.jface.text.reconciler.IReconcilingStrategy

public class TaskSpellingReconcileStrategy
extends java.lang.Object
implements org.eclipse.jface.text.reconciler.IReconcilerExtension, org.eclipse.jface.text.reconciler.IReconcilingStrategy

Adapted from org.eclipse.jdt.internal.ui.text.spelling.PropertiesSpellingReconcileStrategy

Author:
Jeff Pound, Rob Elves

Nested Class Summary
private  class TaskSpellingReconcileStrategy.SpellingProblemCollector
          Spelling problem collector that forwards SpellingProblems as IProblems to the IProblemRequestor.
 
Field Summary
private  org.eclipse.jface.text.source.IAnnotationModel annotationModel
           
private  org.eclipse.jface.text.IDocument fDocument
          The document to operate on.
private  org.eclipse.core.runtime.IProgressMonitor fProgressMonitor
          The progress monitor.
private  org.eclipse.ui.texteditor.spelling.SpellingContext fSpellingContext
          The spelling context containing the Java properties content type.
static int SPELLING_PROBLEM_ID
          The id of the problem
 
Constructor Summary
TaskSpellingReconcileStrategy()
           
 
Method Summary
 java.lang.String getDocumentPartitioning()
           
 void initialReconcile()
           
 void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion)
           
 void reconcile(org.eclipse.jface.text.IRegion region)
           
 void setAnnotationModel(org.eclipse.jface.text.source.IAnnotationModel model)
           
 void setDocument(org.eclipse.jface.text.IDocument document)
           
 void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPELLING_PROBLEM_ID

public static final int SPELLING_PROBLEM_ID
The id of the problem

See Also:
Constant Field Values

fDocument

private org.eclipse.jface.text.IDocument fDocument
The document to operate on.


fProgressMonitor

private org.eclipse.core.runtime.IProgressMonitor fProgressMonitor
The progress monitor.


fSpellingContext

private org.eclipse.ui.texteditor.spelling.SpellingContext fSpellingContext
The spelling context containing the Java properties content type.

Since his reconcile strategy is for the Properties File editor which normally edits Java properties files we always use the Java properties file content type for performance reasons.

Since:
3.2

annotationModel

private org.eclipse.jface.text.source.IAnnotationModel annotationModel
Constructor Detail

TaskSpellingReconcileStrategy

public TaskSpellingReconcileStrategy()
Method Detail

initialReconcile

public void initialReconcile()

reconcile

public void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion,
                      org.eclipse.jface.text.IRegion subRegion)
Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy

reconcile

public void reconcile(org.eclipse.jface.text.IRegion region)
Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy

setDocument

public void setDocument(org.eclipse.jface.text.IDocument document)
Specified by:
setDocument in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy

setProgressMonitor

public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)

getDocumentPartitioning

public java.lang.String getDocumentPartitioning()
Specified by:
getDocumentPartitioning in interface org.eclipse.jface.text.reconciler.IReconcilerExtension

setAnnotationModel

public void setAnnotationModel(org.eclipse.jface.text.source.IAnnotationModel model)