if (!partition.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))
if (!partition.getType().equals(IDocument.DEFAULT_CONTENT_TYPE) && !partition.getType().equals(IJavaPartitions.JAVA_CHARACTER))
	protected void check(IDocument document, IRegion[] regions, ISpellChecker checker, Locale locale, ISpellingProblemCollector collector, IProgressMonitor monitor) {		ISpellEventListener listener= new SpellEventListener(collector, document);		try {			checker.addListener(listener);			try {				for (int i= 0; i < regions.length; i++) {					IRegion region= regions[i];					ITypedRegion[] partitions= TextUtilities.computePartitioning(document, IJavaPartitions.JAVA_PARTITIONING, region.getOffset(), region.getLength(), false);					for (int index= 0; index < partitions.length; index++) {						if (monitor != null && monitor.isCanceled())							return;						ITypedRegion partition= partitions[index];						if (!partition.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))							checker.execute(new SpellCheckIterator(document, partition, locale));					}				}			} catch (BadLocationException x) {				JavaPlugin.log(x);			}		} finally {			checker.removeListener(listener);		}	}