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

5 comments
Comment actions Permalink

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:

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



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

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 ?

0
Comment actions Permalink

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 ?

0
Comment actions Permalink

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:

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 ?


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Cool.

Thanks...

0

Please sign in to leave a comment.