Author: ezheleznyakov
Date: 2007-10-05 04:03:19 -0400 (Fri, 05 Oct 2007)
New Revision: 4015
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableElements.java
Log:
Fix ClassCastException
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableElements.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableElements.java 2007-10-04
16:50:50 UTC (rev 4014)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableElements.java 2007-10-05
08:03:19 UTC (rev 4015)
@@ -360,7 +360,7 @@
nsIDOMNode child = children.item(i);
if (tagName.equalsIgnoreCase(child.getNodeName())) {
if (ind == index) {
- return (nsIDOMElement)child;
+ return (nsIDOMElement)child.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
} else {
ind++;
}
Show replies by date