Community
Participate
Working Groups
Add Filter field to Project Properties - Libraries. I often do not find a specific entry in those dozen entries in my project propery. A filter field would help a lot! By the way it's an eclipse standard! Thanks, Jan -- Configuration Details -- Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.java.product) Installed Features: org.eclipse.jdt 3.6.0.v20100526-0800-7z8XFUJFMTfCWGoVuHImpms9H155 -- Configuration Details -- Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.java.product) Installed Features: org.eclipse.jdt 3.6.0.v20100526-0800-7z8XFUJFMTfCWGoVuHImpms9H155
Created attachment 177495 [details] My Libraries
Move to JDT/UI
Fair request.
*** Bug 471412 has been marked as a duplicate of this bug. ***
I am taking a stab on this. The UI is defined in LibrariesWorkbookPage, which contains a TreeListDialogField that is the "Control" with the tree showing the Libraries. My approach would be to use a FilteredTree instead of a Tree used in TreeListDialogField.createTreeViewer() Suggestions and comments are welcome.
Created attachment 257798 [details] Video of the filtering solution implemented, 400kb As explained in [1] I used FilteredTree; as in reference [2] I added a PatternFilter; as in reference [3] I checked the prerequisites, including tree leaves implementing ILabelProvider. Im my implementation i did the following choices: - I used the boolean filteringEnabled to represent need of having the list filtered, as TreeListDialogField.createTreeViewer(.) is reused - I used advanced layouting, as FilteredTree.createControl(..) is setting bad (grid) layout data, for things in this case. [1] http://eclipsesource.com/blogs/2012/10/26/filtering-tables-in-swtjface/ [2] http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fui%2Fdialogs%2FFilteredTree.html [3] http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fui%2Fdialogs%2FPatternFilter.html
New Gerrit change created: https://git.eclipse.org/r/59877
There is a Gerrit change pending for this helpwanted bug :)
(In reply to Eclipse Genie from comment #7) > New Gerrit change created: https://git.eclipse.org/r/59877 I didn't check the code yet. On trying out the patch, found the following issue: - Type a filter text (example: *e4) => filtered results will be displayed. - Now, click on "Clear" to clear the filter text. Issue: All the filtered library nodes from the previous step are now left in expanded state in the tree.