Community
Participate
Working Groups
Currently the only way to search for parts of comments and string literals is to use the full text search. It would be great to be able to search just string literals, or search just comments.
Text search is currently defined at platform level and doesn't know about Java. Cannot address for 2.0
There could be other/new Java "Search for" types: - String literal - Comment - Javadoc comment
Moving to J Core for comment about such a Search enginge extension
Not for 2.1 either.
Reopen as LATER is deprecated...
May be addressed while fixing bug 155013...
After having worked on prototype for bug 155013, I realized that fine grain search only concern reference to java element, neither for string literal nor for text in comments... So, put back to low priority (similar as LATER)...
*** Bug 337173 has been marked as a duplicate of this bug. ***
See also bug 337200.
*** Bug 485053 has been marked as a duplicate of this bug. ***
It is hard to believe that this bug is reported in 2002, nevertheless, it is probably even more relevant now than it was back then... Especially finding references of java classes, methods, constructors etc. in String literals is a frequent use case when you deal with e.g. JPA JPQL or Spring Caching annotations. There are probably more valid examples in other frameworks. IntelliJ offers similar things https://stackoverflow.com/a/28720224/1239904