Class SpellingReconcileStrategy

    • Constructor Detail

      • SpellingReconcileStrategy

        public SpellingReconcileStrategy​(ISourceViewer viewer,
                                         SpellingService spellingService)
        Creates a new comment reconcile strategy.
        Parameters:
        viewer - the source viewer
        spellingService - the spelling service to use
    • Method Detail

      • reconcile

        public void reconcile​(DirtyRegion dirtyRegion,
                              IRegion subRegion)
        Description copied from interface: IReconcilingStrategy
        Activates incremental reconciling of the specified dirty region. As a dirty region might span multiple content types, the segment of the dirty region which should be investigated is also provided to this reconciling strategy. The given regions refer to the document passed into the most recent call of IReconcilingStrategy.setDocument(IDocument).
        Specified by:
        reconcile in interface IReconcilingStrategy
        Parameters:
        dirtyRegion - the document region which has been changed
        subRegion - the sub region in the dirty region which should be reconciled
      • getContentType

        protected IContentType getContentType()
        Returns the content type of the underlying editor input.
        Returns:
        the content type of the underlying editor input or null if none could be determined
      • getDocument

        protected final IDocument getDocument()
        Returns the document which is spell checked.
        Returns:
        the document
      • setDocument

        public void setDocument​(IDocument document)
        Description copied from interface: IReconcilingStrategy
        Tells this reconciling strategy on which document it will work. This method will be called before any other method and can be called multiple times. The regions passed to the other methods always refer to the most recent document passed into this method.
        Specified by:
        setDocument in interface IReconcilingStrategy
        Parameters:
        document - the document on which this strategy will work
      • createSpellingProblemCollector

        protected ISpellingProblemCollector createSpellingProblemCollector()
        Creates a new spelling problem collector.
        Returns:
        the collector or null if none is available
      • setProgressMonitor

        public final void setProgressMonitor​(IProgressMonitor monitor)
        Description copied from interface: IReconcilingStrategyExtension
        Tells this reconciling strategy with which progress monitor it will work. This method will be called before any other method and can be called multiple times.
        Specified by:
        setProgressMonitor in interface IReconcilingStrategyExtension
        Parameters:
        monitor - the progress monitor with which this strategy will work
      • getAnnotationModel

        protected IAnnotationModel getAnnotationModel()
        Returns the annotation model to be used by this reconcile strategy.
        Returns:
        the annotation model of the underlying editor input or null if none could be determined