IDEA-72077 Quick Documentation Lookup window is NOT always displayed for spring namespace tags

This commit is contained in:
Dmitry Avdeev
2013-07-31 19:00:36 +04:00
parent 5bd6e1a42f
commit f7f0f914c3

View File

@@ -52,9 +52,9 @@ public class DefaultXmlExtension extends XmlExtension {
final List<TagInfo> set = new ArrayList<TagInfo>();
for (int i = 0; i < descriptors.size(); i++) {
XmlElementDescriptor descriptor = descriptors.get(i);
String name = descriptor.getName(context);
final int pos = name.indexOf(':');
final String s = pos >= 0 ? name.substring(pos + 1) : name;
String qualifiedName = descriptor.getName(context);
final int pos = qualifiedName.indexOf(':');
final String name = pos >= 0 ? qualifiedName.substring(pos + 1) : qualifiedName;
set.add(new TagInfo(name, nsInfo.get(i), descriptors.get(i).getDeclaration()));
}
return set;