Fix EA-83601 - ISE: PomFile.<init>

This commit is contained in:
Sergey Mashkov
2016-06-06 14:50:01 +03:00
parent 49ccfa0ec4
commit 7999dc8d01
@@ -50,6 +50,10 @@ class MavenPluginSourcesMoveToExecutionIntention : PsiElementBaseIntentionAction
return false
}
if (MavenDomUtil.getMavenDomProjectModel(project, file.virtualFile) == null) {
return false
}
val pom = PomFile(file as XmlFile)
if (domElement.getParentOfType(MavenDomBuild::class.java, false)?.sourceDirectory === domElement) {
return pom.findKotlinExecutions(PomFile.KotlinGoals.Compile, PomFile.KotlinGoals.Js).isNotEmpty()