IDEA-57470 spring: code completion in xml suggest unprefixed <constructor-arg> and <property> when "beans" namespace has been bound to prefix

completing top-level elements from qualified ns
This commit is contained in:
Dmitry Avdeev
2012-03-30 12:57:44 +04:00
parent d9046180f8
commit bea85e2052
@@ -74,7 +74,8 @@ public class XmlElementDescriptorImpl implements XmlElementDescriptor, PsiWritab
if (rootTag != null &&
( NONQUALIFIED_ATTR_VALUE.equals(elementFormDefault = rootTag.getAttributeValue(ELEMENT_FORM_DEFAULT)) || elementFormDefault == null /*unqualified is default*/) &&
tag.getNamespaceByPrefix("").length() == 0
tag.getNamespaceByPrefix("").isEmpty()
&& myDescriptorTag.getParentTag() != rootTag
) {
value = XmlUtil.findLocalNameByQualifiedName(value);
} else {