Community
Participate
Working Groups
Created attachment 285308 [details] eclipse class reference exclude imports.png If you search for references of a class you typically filter out import references , in order to exclude duplicated hits in your search results. (A class that gets used in another class typically appears in its imports). However, there is a shortcoming regarding static imports. If you statically import a class, it will not appear again in the class since it is imported statically. As a result, if you have the exclude imports filter activated (as a means of deduplication and cleaning the results), you will (unintentionally) miss static imports as well and it appears at first sight, that the class is not referenced anywhere. You have to spot the label 'x matches filtered from view' and adjust the filter settings accordingly, but then, especially in huge codebases, you might get overwhelmed with matches of normal imports that are not interesting to you. So you would often switch back and forth with that exclude filter settings. So my proposal is to have not one but two filter options regarding imports. 1. to exclude ONLY normal imports (which would be active most of the time I guess) 2. to exclude static imports
Created attachment 285309 [details] eclipse class reference of static imports.png
Created attachment 285331 [details] example project
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/179870
Please add a news and noteworthy item.
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/179870 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=9c9d6ce6528dd174686aa8b9ee023f60696b7cf4
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/180137
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/180137 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=efd9a287f23dabcd144cfbcb51bf19d8b206cc22