universally support ant references of type "org.apache.tools.ant.types.Reference" like "classpathref", "bootclasspathref" etc.

This commit is contained in:
Eugene Zhuravlev
2013-04-20 19:10:31 +04:00
parent ec4f3edd82
commit 2f916f285f
@@ -29,6 +29,7 @@ import com.intellij.psi.xml.XmlTag;
import com.intellij.util.xml.*;
import com.intellij.util.xml.reflect.*;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.types.Reference;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -248,6 +249,9 @@ public class AntDomExtender extends DomExtender<AntDomElement>{
type = Boolean.class;
converterClass = AntBooleanConverter.class;
}
else if (isAssignableFrom(Reference.class.getName(), attributeType)) {
converterClass = AntDomRefIdConverter.class;
}
}
}