Custom tag navigation
I'm using a custom implementation of PsiReferenceProvider to provide navigation from HTML files. The problem is that i only seem to be able to provide navigation from the parts of the HTML where IDEA doesn't already provide navigation.
For example, i can't override the navigation from an HTML tag name element.
Is there anyway i can do this ?
Thanks,
Hugo
Please sign in to leave a comment.
Resolve of reference from tag name is completely dependent from
XmlElementDescriptor/XmlNSDescriptor used by xml file.
You can change XmlNSDescriptor mapping for the xml file via custom
namespace meta data (MetaRegistry class) or XmlFileNSInfoProvider
implementation
Hugo Palma wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
That means that the same tag name will always resolve to the same place right ?
I'd have to register beforehand to where would the tag name resolve.
If this is true, it doesn't do it for me.
Is it ?
That means that the same tag name will always resolve to the same place right ?
I'd have to register beforehand to where would the tag name resolve.
If this is true, it doesn't do it for me.
Is it ? If not, can you provide an example of this API usage please ?
You can build XmlNSDescriptor structure just from the file as needed.
There is extensive discussion for the matter in this JIRA issue
http://jetbrains.net/jira/browse/IDEADEV-5499 and even some source code
Hugo Palma wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Cool.
Thanks...