Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsandonato2010-08-16 19:48:28 +0000
committernsandonato2010-08-16 19:48:28 +0000
commitff566924ba641db9e0190ee46ed6ceb89cbb6e11 (patch)
tree377aaa84af0d05e33fe32fde20e1f88b0b2cbf62 /bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal
parentf2376d8af3efd2fa6918607fe2feed105e804880 (diff)
downloadwebtools.sourceediting-ff566924ba641db9e0190ee46ed6ceb89cbb6e11.tar.gz
webtools.sourceediting-ff566924ba641db9e0190ee46ed6ceb89cbb6e11.tar.xz
webtools.sourceediting-ff566924ba641db9e0190ee46ed6ceb89cbb6e11.zip
[316025] Spell check does not work for HTML Editor and Web Page Editor
Diffstat (limited to 'bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal')
-rw-r--r--bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/spelling/SpellcheckDelegateAdapterFactory.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/spelling/SpellcheckDelegateAdapterFactory.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/spelling/SpellcheckDelegateAdapterFactory.java
index a6fae546c3..6323b1acf7 100644
--- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/spelling/SpellcheckDelegateAdapterFactory.java
+++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/spelling/SpellcheckDelegateAdapterFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 IBM Corporation and others.
+ * Copyright (c) 2009, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -15,6 +15,7 @@ import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.ui.internal.spelling.ISpellcheckDelegate;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.w3c.dom.Text;
import org.w3c.dom.Comment;
/**
@@ -48,7 +49,7 @@ public class SpellcheckDelegateAdapterFactory implements IAdapterFactory {
IndexedRegion region = model.getIndexedRegion(offset);
if(region != null) {
- shouldSpellcheck = (region instanceof Comment);
+ shouldSpellcheck = (region instanceof Comment || region instanceof Text);
}
return shouldSpellcheck;

Back to the top