| Summary: | [build path] Add Filter field to Project Properties - Libraries | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jan Hoppe <jan.hoppe> | ||||||
| Component: | UI | Assignee: | Patrik Suzzi <psuzzi> | ||||||
| Status: | ASSIGNED --- | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | daniel_megert, deepakazad, ismeequal, markus.kell.r, noopur_gupta, psuzzi, timo | ||||||
| Version: | 3.6 | Keywords: | bugday, helpwanted | ||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Windows 7 | ||||||||
| See Also: | https://git.eclipse.org/r/59877 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Jan Hoppe
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. |