Community
Participate
Working Groups
Created attachment 219362 [details] Screenshot Since a while I used a self-written clone of the package explorer. I recently changed that to a modified version of the JDT package explorer. My little enhancements allows to type in filter for the project name and filter the tree. Screenshot attached. Is that something you would consider as enhancements for the standard JDT Package Explorer? If yes, I'm happy to contribute it, if not, please feel free to close this bug.
See also bug 226046, where similar request is made for the common navigator (Project Explorer, C++ Projects Explorer etc). The subtle difference for JDT is that it already provides name filters, but they are hidden in "Filters..." view menu. It would be nice if we could have one consistent solution for all "explorers" or explorer-like structures like "Problems view", where I also would like to see a quick text filter. Please consider to make this text filter line optional for those users with limited screen sizes. Other (bad) example for same functionality is the Error log view, where the "filter text" field was added by default (and you can't turn it off even if you don't need it).
@Andrey: The "Filters..." view menu does only support exclusion filters - like a blacklist. Lars is suggesting an inclusion filter - like a whitelist. I would love to see this quick filter in JDT. I think it would have saved me a lot of time. @Lars: Thanks for your feature patch, I'm gonna install it.
(In reply to comment #2) > @Andrey: The "Filters..." view menu does only support exclusion filters - > like a blacklist. > Lars is suggesting an inclusion filter - like a whitelist. So you see that even experienced Eclipse users (me :-)) are confused by lot of different and partly incompatible/opposite implementations in the standard IDE plugins (not to mention all the 3rd party tools). So yes, I would like to see quick filter too, implemented for all common views, with common look and feel/behavior (like preference to hide it).
(In reply to comment #3) > So yes, I would like to see quick filter too, implemented for all common > views, with common look and feel/behavior (like preference to hide it). ... and in the ideal world the code adding this text filter would be a public common API, so that all 3rd party plugin developers could re-use it for their own views.
I pushed the changes to a the "filterpackageexplorer" branch in to https://github.com/vogella/jdt-package-explorer/ The commit is commit/97a8c0d31938112a6d39e3a7cada8538590f3b58 Looks like I committed a lot of whitespace but the change should be identifiable for people which would like to look at the changes. If there is interest I can redo the change and try to avoid whitespace changes.
@Andrey, I think it is public API of the JFace TreeViewer, I could have used the ViewerFilter class. Now that I said it I feel bad and most likely will soon change my implementation.
I would love to see the white-list filter becoming part of the next Eclipse release, too.
See also bug 69200. *** This bug has been marked as a duplicate of bug 149110 ***