Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritrimble2010-01-15 17:26:16 +0000
committeritrimble2010-01-15 17:26:16 +0000
commit05eda1fdcac5945b5f1f242f72a1a49e469d12f8 (patch)
treeb6a5a37c2ba0ebae55632762a90f4fb46c14d131
parent91af2c30fd063af07d4cf93e907b991013f8bd5d (diff)
downloadwebtools.jsf-05eda1fdcac5945b5f1f242f72a1a49e469d12f8.tar.gz
webtools.jsf-05eda1fdcac5945b5f1f242f72a1a49e469d12f8.tar.xz
webtools.jsf-05eda1fdcac5945b5f1f242f72a1a49e469d12f8.zip
Bug 251378 - Web Page Editor errors when opening files
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/converter/operations/jsf/ColumnOperation.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/converter/operations/jsf/ColumnOperation.java b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/converter/operations/jsf/ColumnOperation.java
index 10db46560..a8b15e7c4 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/converter/operations/jsf/ColumnOperation.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/converter/operations/jsf/ColumnOperation.java
@@ -75,7 +75,12 @@ public class ColumnOperation extends AbstractTransformOperation {
int index = 0;
while (childNode != null) {
if (!(childNode instanceof Element) || !JSFDOMUtil.isFacet((Element)childNode)) {
- tagConverterContext.addChild(childNode, new ConvertPosition(tdElement, index++));
+ //Bug 251378 - only add element, text, and CDATA child nodes (as we do everywhere else)
+ if (childNode.getNodeType() == Node.ELEMENT_NODE ||
+ childNode.getNodeType() == Node.TEXT_NODE ||
+ childNode.getNodeType() == Node.CDATA_SECTION_NODE) {
+ tagConverterContext.addChild(childNode, new ConvertPosition(tdElement, index++));
+ }
}
childNode = childNode.getNextSibling();
}

Back to the top