use of com.intellij.javaee.ImplicitNamespaceDescriptorProvider in project intellij-community by JetBrains.
the class XmlTagImpl method getImplicitNamespaceDescriptor.
@Nullable
private XmlNSDescriptor getImplicitNamespaceDescriptor(String ns) {
PsiFile file = getContainingFile();
if (file == null)
return null;
Module module = ModuleUtilCore.findModuleForPsiElement(file);
if (module != null) {
for (ImplicitNamespaceDescriptorProvider provider : Extensions.getExtensions(ImplicitNamespaceDescriptorProvider.EP_NAME)) {
XmlNSDescriptor nsDescriptor = provider.getNamespaceDescriptor(module, ns, file);
if (nsDescriptor != null)
return nsDescriptor;
}
}
return null;
}
Aggregations