How to shadow PsiClasses contributed by JavaPsiFacadeImpl$PsiElementFinderImpl

My plugin contributes PsiClasses, which can be referenced from Java, via implementing 'java.elementFinder' and 'java.shortNamesCache extenstion points.

The problem is that same classes can be contributed by my implementation of PsiElementFinder and by JavaPsiFacadeImpl$PsiElementFinderImpl. In such cases my classes should shadow classes provided by JavaPsiFacadeImpl$PsiElementFinderImpl.

How can I achieve it?

I wanted to use 'order' attribute of 'java.elementFinder' extension point, something like: order="before java". But it did not work, maybe the problem is in JavaPsiFacadeImpl.calcFinders: it does not seem to care about 'order' attribute and always adds PsiElementFinderImpl as the first finder.

If it is a bug could you fix it? Otherwise could you propose a right solution?

1 comment
Comment actions Permalink

The issue in youtrack: http://youtrack.jetbrains.com/issue/IDEA-129361. - It is not possible to shadow PsiClasses contributed by JavaPsiFacadeImpl$PsiElementFinderImpl

0

Please sign in to leave a comment.