From f38e9471d93d7b89c0ea0bd10faac89f87319828 Mon Sep 17 00:00:00 2001 From: Sergey Evdokimov Date: Tue, 24 Apr 2012 14:38:47 +0400 Subject: [PATCH] IDEA-85123 Add reference to value of 'exists' and 'missing' tags inside profile activation declaration --- .../idea/maven/dom/model/MavenDomActivationFile.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/model/MavenDomActivationFile.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/model/MavenDomActivationFile.java index 22d93574bcc9..e5ce1242fd8d 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/model/MavenDomActivationFile.java +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/model/MavenDomActivationFile.java @@ -19,9 +19,12 @@ package org.jetbrains.idea.maven.dom.model; +import com.intellij.openapi.paths.PathReference; +import com.intellij.util.xml.Convert; import com.intellij.util.xml.GenericDomValue; import org.jetbrains.annotations.NotNull; import org.jetbrains.idea.maven.dom.MavenDomElement; +import org.jetbrains.idea.maven.dom.references.MavenDirectoryPathReferenceConverter; /** * http://maven.apache.org/POM/4.0.0:ActivationFile interface. @@ -42,7 +45,8 @@ public interface MavenDomActivationFile extends MavenDomElement { * @return the value of the missing child. */ @NotNull - GenericDomValue getMissing(); + @Convert(value = MavenDirectoryPathReferenceConverter.class, soft = true) + GenericDomValue getMissing(); /** * Returns the value of the exists child. @@ -54,5 +58,6 @@ public interface MavenDomActivationFile extends MavenDomElement { * @return the value of the exists child. */ @NotNull - GenericDomValue getExists(); + @Convert(value = MavenDirectoryPathReferenceConverter.class, soft = true) + GenericDomValue getExists(); }