Search in sources :

Example 1 with MavenDomProperties

use of org.jetbrains.idea.maven.dom.model.MavenDomProperties in project intellij-community by JetBrains.

the class IntroducePropertyDialog method isPropertyExist.

private static boolean isPropertyExist(String propertyName, MavenDomProjectModel project) {
    MavenDomProperties props = project.getProperties();
    XmlTag propsTag = props.getXmlTag();
    if (propsTag != null) {
        for (XmlTag each : propsTag.getSubTags()) {
            if (propertyName.equals(each.getName()))
                return true;
        }
    }
    return false;
}
Also used : MavenDomProperties(org.jetbrains.idea.maven.dom.model.MavenDomProperties) XmlTag(com.intellij.psi.xml.XmlTag)

Aggregations

XmlTag (com.intellij.psi.xml.XmlTag)1 MavenDomProperties (org.jetbrains.idea.maven.dom.model.MavenDomProperties)1