What Happened To AntNameIdentifier and AntTarget?

The antdebugger plugin (http://plugins.jetbrains.com/plugin?pr=idea&pluginId=4526) no longer works with IDEA 12 so I have decided to try and fix it.
The code is on GitHub (https://github.com/opticyclic/antdebugger) and it now runs in v12.

All I did was fix a few obvious API changes, however, there were a couple that weren't so obvious.

AntNameIdentifier and AntTarget have both been deleted.I was able to make it work in the following ways:
https://github.com/opticyclic/antdebugger/commit/979c95ed12158c2c7a86e4cd1382ccf7aaf204d8
https://github.com/opticyclic/antdebugger/commit/772d355343f39c9df73245af77a276e3d49c5ad3

The plugin seems to work but I don't think that I have done it correctly as I don't know what they really did before or why they were removed.

To be honest, I'm surprised that the ant debugger isn't part of the core ANT plugin.

Do my changes look OK?      

1 comment
Comment actions Permalink

Hi Opticyclic,

The ant support has been rewritten from PSI into DOM model (see http://confluence.jetbrains.com/display/IDEADEV/Accessing+XML+through+IntelliJ+IDEA+DOM#AccessingXMLthroughIntelliJIDEADOM-Abstract ) so the classes you mentioned no longer exist.
You can analyse ant files either with the DOM API (see the link above) or in terms of Ant entities: com.intellij.lang.ant.AntSupport component provides you a way to obtain AntProject or an AntDomElement object that corresponds to specified XmlTag object.

Eugene.

0

Please sign in to leave a comment.