use of org.jetbrains.idea.maven.dom.model.MavenDomBuild in project intellij-community by JetBrains.
the class MavenSourceDirectoryConverter method isSoft.
@Override
public boolean isSoft(@NotNull DomElement element) {
DomElement buildElement = element.getParent();
if (!(buildElement instanceof MavenDomBuild)) {
return false;
}
DomElement mavenProject = buildElement.getParent();
if (!(mavenProject instanceof MavenDomProjectModel)) {
return false;
}
return "pom".equals(((MavenDomProjectModel) mavenProject).getPackaging().getStringValue());
}
Aggregations