Java 类com.intellij.lang.ant.dom.AntDomAntlib 实例源码

项目:intellij-ce-playground    文件:AntSupport.java   
@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;
}
项目:tools-idea    文件:AntSupport.java   
@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;
}
项目:consulo-apache-ant    文件:AntSupport.java   
@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;
}