use of com.intellij.lang.ant.dom.AntDomAntlib in project intellij-community by JetBrains.
the class AntSupport method getAntLib.
@Nullable
public static AntDomAntlib getAntLib(PsiFile psiFile) {
if (psiFile instanceof XmlFile) {
final DomManager domManager = DomManager.getDomManager(psiFile.getProject());
final DomFileElement<AntDomAntlib> fileElement = domManager.getFileElement((XmlFile) psiFile, AntDomAntlib.class);
return fileElement != null ? fileElement.getRootElement() : null;
}
return null;
}
Aggregations