Author: svasilyev
Date: 2007-10-15 06:49:51 -0400 (Mon, 15 Oct 2007)
New Revision: 4173
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCopyCreator.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1045
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCopyCreator.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCopyCreator.java 2007-10-15
10:37:44 UTC (rev 4172)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCopyCreator.java 2007-10-15
10:49:51 UTC (rev 4173)
@@ -20,6 +20,7 @@
import org.mozilla.interfaces.nsIDOMAttr;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
@@ -120,13 +121,13 @@
public void removeAttribute(VpePageContext pageContext,
Element sourceElement, Map visualNodeMap, String name) {
if (isAttribute(name)) {
- Element visualElement = (Element) visualNodeMap.get(this);
+ nsIDOMElement visualElement = (nsIDOMElement) visualNodeMap.get(this);
visualElement.removeAttribute(name);
}
}
public void pseudo(VpePageContext pageContext, Node sourceNode,
- Node visualNode, Map visualNodeMap) {
+ nsIDOMNode visualNode, Map visualNodeMap) {
visualNodeMap.put(this, visualNode);
}