@Override protected void check(IDocument document, IRegion[] regions, ISpellChecker checker, ISpellingProblemCollector collector, IProgressMonitor monitor) { SpellEventListener listener= new SpellEventListener(collector, document); for (int i= 0; i < regions.length; i++) { if (monitor != null && monitor.isCanceled()) return; if (listener.isProblemsThresholdReached()) return; checker.execute(listener, new SpellCheckIterator(document, regions[i], checker.getLocale())); } } }
@Override protected void check(IDocument document, IRegion[] regions, ISpellChecker checker, ISpellingProblemCollector collector, IProgressMonitor monitor) { SpellEventListener listener= new SpellEventListener(collector, document); for (int i= 0; i < regions.length; i++) { if (monitor != null && monitor.isCanceled()) return; if (listener.isProblemsThresholdReached()) return; checker.execute(listener, new SpellCheckIterator(document, regions[i], checker.getLocale())); } } }
protected void check(IDocument document, IRegion[] regions, ISpellChecker checker, ISpellingProblemCollector collector, IProgressMonitor monitor) { SpellEventListener listener= new SpellEventListener(collector, document); try { checker.addListener(listener); for (int i= 0; i < regions.length; i++) { if (monitor != null && monitor.isCanceled()) return; if (listener.isProblemsThresholdReached()) return; checker.execute(new SpellCheckIterator(document, regions[i], checker.getLocale())); } } finally { checker.removeListener(listener); } } }
checker.execute(listener, new SpellCheckIterator(document, partition, checker.getLocale()));
checker.execute(listener, new SpellCheckIterator(document, partition, checker.getLocale()));
checker.execute(new SpellCheckIterator(document, partition, checker.getLocale()));
if (IPropertiesFilePartitions.COMMENT.equals(partitionType) || (!isIgnoringAmpersand && IPropertiesFilePartitions.PROPERTY_VALUE.equals(partitionType))) { Locale locale= checker.getLocale(); checker.execute(listener, new SpellCheckIterator(document, partition, locale)); } else if (isIgnoringAmpersand && IPropertiesFilePartitions.PROPERTY_VALUE.equals(partitionType)) { Locale locale= checker.getLocale(); checker.execute(listener, new PropertiesFileSpellCheckIterator(document, partition, locale));
if (IPropertiesFilePartitions.COMMENT.equals(partitionType) || (!isIgnoringAmpersand && IPropertiesFilePartitions.PROPERTY_VALUE.equals(partitionType))) { Locale locale= checker.getLocale(); checker.execute(listener, new SpellCheckIterator(document, partition, locale)); } else if (isIgnoringAmpersand && IPropertiesFilePartitions.PROPERTY_VALUE.equals(partitionType)) { Locale locale= checker.getLocale(); checker.execute(listener, new PropertiesFileSpellCheckIterator(document, partition, locale));
if (IPropertiesFilePartitions.COMMENT.equals(partitionType) || (!isIgnoringAmpersand && IPropertiesFilePartitions.PROPERTY_VALUE.equals(partitionType))) { Locale locale= checker.getLocale(); checker.execute(new SpellCheckIterator(document, partition, locale)); } else if (isIgnoringAmpersand && IPropertiesFilePartitions.PROPERTY_VALUE.equals(partitionType)) { Locale locale= checker.getLocale(); checker.execute(new PropertiesFileSpellCheckIterator(document, partition, locale));