import net.sourceforge.phpdt.core.IProblemRequestor;
import net.sourceforge.phpdt.core.compiler.IProblem;
import net.sourceforge.phpdt.internal.ui.PHPUIMessages;
+import net.sourceforge.phpdt.internal.ui.text.IPHPPartitions;
import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellCheckEngine;
import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellCheckPreferenceKeys;
import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellChecker;
import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellEvent;
import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellEventListener;
+import net.sourceforge.phpeclipse.phpeditor.php.PHPDocumentPartitioner;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.preference.IPreferenceStore;
fPartitioning= partitioning;
fPreferences= store;
- updateProblemRequestor();
+ updateProblemRequestor();
}
/**
for (int index= 0; index < partitions.length; index++) {
partition= partitions[index];
- if (!partition.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))
+ if (!partition.getType().equals(IDocument.DEFAULT_CONTENT_TYPE) &&
+ !partition.getType().equals(PHPDocumentPartitioner.PHP_SCRIPT_CODE))
checker.execute(new SpellCheckIterator(fDocument, partition, locale));
}