my plugin is supposed to do something similar as in request IDEADEV-5499.
So in my application component, I register a custom XmlNSDescriptor:
Similar to the example code attached to IDEADEV-5499, MyXmlNSDescriptor implements every single method of com.intellij.xml.XmlNSDescriptor. If I create some XML file, the no-arg constructor of MyXmlNSDescriptor is called, and then its init() method, but nothing else. In the example code for IDEA 5.1 attached to issue 5499, the init() method also did nothing (except for writing "Hi"), so that cannot be the difference.
Why are MyXmlNSDescriptor methods like getRootElementsDescriptors() and getElementDescriptor() never called? What am I missing here?
Is this still the intended approach in IDEA 8.1, if you want to add custom navigation to certain XML elements?
Btw., in contrast to IDEADEV-5499, the XML files the plugins tries to tweak do have an XML schema, so I am not interested in implementing a custom XmlFileNSInfoProvider.
Any help would be appreciated!