@Override public void reconcile(IRegion region) { if (getAnnotationModel() == null || fSpellingProblemCollector == null) return; fRegions[0]= region; fSpellingService.check(fDocument, fRegions, fSpellingContext, fSpellingProblemCollector, fProgressMonitor); }
public void reconcile(IRegion region) { if (getAnnotationModel() == null || fSpellingProblemCollector == null) return; fSpellingService.check(fDocument, fSpellingContext, fSpellingProblemCollector, fProgressMonitor); }
@Override public void reconcile(IRegion region) { if (getAnnotationModel() == null || fSpellingProblemCollector == null) return; fRegions[0]= region; fSpellingService.check(fDocument, fRegions, fSpellingContext, fSpellingProblemCollector, fProgressMonitor); }
/** * Checks the given document. Reports all found spelling problems to the * collector. The spelling engine is chosen based on the settings * from the given preferences. * * @param document the document to check * @param context the context * @param collector the problem collector * @param monitor the progress monitor, can be <code>null</code> */ public void check(IDocument document, SpellingContext context, ISpellingProblemCollector collector, IProgressMonitor monitor) { check(document, new IRegion[] { new Region(0, document.getLength()) }, context, collector, monitor); }
/** * Checks the given document. Reports all found spelling problems to the * collector. The spelling engine is chosen based on the settings * from the given preferences. * * @param document the document to check * @param context the context * @param collector the problem collector * @param monitor the progress monitor, can be <code>null</code> */ public void check(IDocument document, SpellingContext context, ISpellingProblemCollector collector, IProgressMonitor monitor) { check(document, new IRegion[] { new Region(0, document.getLength()) }, context, collector, monitor); }
/** * Checks the given document. Reports all found spelling problems to the * collector. The spelling engine is chosen based on the settings * from the given preferences. * * @param document the document to check * @param context the context * @param collector the problem collector * @param monitor the progress monitor, can be <code>null</code> */ public void check(IDocument document, SpellingContext context, ISpellingProblemCollector collector, IProgressMonitor monitor) { check(document, new IRegion[] { new Region(0, document.getLength()) }, context, collector, monitor); }
@Override public void reconcile(IRegion region) { if (!isSpellingEnabled()) { return; } ITypedRegion[] regions = computePartitioning(0, getDocument().getLength(), DEFAULT_PARTITIONING); spellingService.check(getDocument(), regions, spellingContext, spellingProblemCollector, progressMonitor); }