Author: scabanovich
Date: 2011-05-06 12:54:10 -0400 (Fri, 06 May 2011)
New Revision: 31128
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/xml/SAXElement.java
Log:
JBIDE-8842
https://issues.jboss.org/browse/JBIDE-8842
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/xml/SAXElement.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/xml/SAXElement.java 2011-05-06
16:15:30 UTC (rev 31127)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/xml/SAXElement.java 2011-05-06
16:54:10 UTC (rev 31128)
@@ -74,6 +74,10 @@
return localName;
}
+ public String getPrefix() {
+ return (name != null && name.indexOf(":") >= 0) ?
name.substring(0, name.indexOf(":")) : null;
+ }
+
public void setTextNode(SAXText text) {
this.text = text;
}