Find in path sergio cuellar Created February 15, 2008 17:11 Hi,How can I "find in path" string literals from plugin code?I've tried PsiSearchHelper.processAllFilesWithWord, but it only search whole words, and excludes java clases.Thanks
Yes, I'm also interesting in this theme.
Ok. I found the solution.
MyTextOccurenceProcessor textOccurenceProcessor = new MyTextOccurenceProcessor();
psiManager.getSearchHelper().processElementsWithWord(textOccurenceProcessor, project.getAllScope(), SOME_TEXT , UsageSearchContext.IN_STRINGS, true);
Is this functionality accessible in the 12x version too?
Yes. Instead of PsiManager.getSearchHelper(), you need to use PsiSearchHelper.SERVICE.getInstance().