How to disable Properties key reference for PsiLiteralExpession?

I have implemented a new PsiReferenceProvider for PsiLiteralExpession, but when I invoke code hint for PsiLiteralExpession, code hint for properties key can be also displayed, how to disable properties key reference, and only custom reference should be invoked. Thanks.

3 comments

Hello linux_china,

I have implemented a new PsiReferenceProvider for PsiLiteralExpession,
but when I invoke code hint for PsiLiteralExpession, code hint for
properties key can be also displayed, how to disable properties key
reference, and only custom reference should be invoked. Thanks.


Make your PsiReferences non-soft.

Out of curiosity, what kind of references are you providing?

-tt


0

I have implemented an iBATIS plugin, and I want to implement code hint for sqlmapClient.insert(""), just like hibernate.

0

Hello linux_china,

I have implemented an iBATIS plugin, and I want to implement code hint
for sqlmapClient.insert(""), just like hibernate.


Nice. IBATIS beats regular JDBC bigtime, although the JDBC templates are
getting quite good as well.

Woule be even better if there was an injectable SQL language implementation
available.
Btw, it looks like the hibernate support uses a nice API for references injection:
com.intellij.patterns.impl (Unfortunately not part of OpenAPI)

-tt


0

Please sign in to leave a comment.