i'm trying to write a plugin which basicly would extend a little PsiReference functionality. I've got xml file with smth like:
now i wanna make that when you ctrl+click on the value of attr "ref" /val1/ from validator-ref-rule caret automatically moves to the the value of "type" in proper validator / where type="val1" equals ref="val1" /
I've managed to do that by scanning all xml files on project open and building my own tree of reference but i wanna use the api of idea /Now i don't get underline when i drag over 'ref' mouse/.
In my plugin.xml i've put:
<psi.referenceProvider providerClass="pl.outbox.pointer.PointerRefProv" id="pl.outbox.pointer.Pointer"/>
I've provide a class PointerRefProv which extends PsiReferenceProvider
Now when i try to run this plugin idea gives me a bunch of nullexceptions, just from beginning. Could somebody show me the proper way to provide your own extension to psiReference?
sorry for my english, haven't been using it for a long time x]
thanks in advance.