mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UP-2253
This commit is contained in:
@@ -219,7 +219,6 @@ public class XmlElementDescriptorImpl extends XsdEnumerationDescriptor<XmlTag>
|
||||
|
||||
if (type instanceof ComplexTypeDescriptor) {
|
||||
final ComplexTypeDescriptor descriptor = (ComplexTypeDescriptor)type;
|
||||
String contextNs;
|
||||
PsiFile containingFile = context != null ? context.getContainingFile():null;
|
||||
|
||||
if (context != null && !containingFile.isPhysical()) {
|
||||
@@ -227,10 +226,11 @@ public class XmlElementDescriptorImpl extends XsdEnumerationDescriptor<XmlTag>
|
||||
//context = context.getParentTag();
|
||||
}
|
||||
|
||||
String contextNs;
|
||||
if (context != null &&
|
||||
( descriptor.canContainTag(context.getLocalName(), contextNs = context.getNamespace(), context ) &&
|
||||
(!contextNs.equals(getNamespace()) || descriptor.hasAnyInContentModel())
|
||||
) ) {
|
||||
descriptor.canContainTag(context.getLocalName(), contextNs = context.getNamespace(), context) &&
|
||||
(!contextNs.equals(getNamespace()) || descriptor.hasAnyInContentModel()) &&
|
||||
containingFile instanceof XmlFile) { // JSXmlLiteralExpressionImpl is crazy
|
||||
final XmlNSDescriptor nsDescriptor = getNSDescriptor();
|
||||
|
||||
if (nsDescriptor != null) {
|
||||
|
||||
Reference in New Issue
Block a user