Author: bbrodt
Date: 2011-02-08 15:38:05 -0500 (Tue, 08 Feb 2011)
New Revision: 29070
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java
Log:
https://issues.jboss.org/browse/JBIDE-8246
Remove unsupported DOM API call in earlier versions of org.eclipse.wst.xml.core
See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335458
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java 2011-02-08
18:43:09 UTC (rev 29069)
+++
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java 2011-02-08
20:38:05 UTC (rev 29070)
@@ -225,8 +225,8 @@
Node nextInnerChild = innerChild;
while (nextInnerChild != null) {
boolean textNodeIsWhitespaceOnly = false;
- if (nextInnerChild.getNodeType() == Node.TEXT_NODE) {
- String content = nextInnerChild.getTextContent();
+ if (nextInnerChild instanceof Text) {
+ String content = ((Text)nextInnerChild).getData();
textNodeIsWhitespaceOnly = (content==null || content.trim().isEmpty());
}
if (textNodeIsWhitespaceOnly) {