Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract shared code of FilteredTrees to abstract base class #2700

Conversation

ptziegler
Copy link
Contributor

This moves the duplicate code of the E3.x and E4.x based FilteredTree class and moves it into an AbstractFilteredViewerComposite class located in the JFace component.

The base class is currently only implementing a tree-based filter, but is structured in such a way that it can easily be extended to also support e.g. table-based filters.

Due to being unused, the following fields and methods have been marked as deprecated:

  • filterToolBar
  • clearButtonControl
  • updateToolbar(boolean)

Contributes to
#2567

This moves the duplicate code of the E3.x and E4.x based FilteredTree
class and moves it into an AbstractFilteredViewerComposite class located
in the JFace component.

The base class is currently only implementing a tree-based filter, but
is structured in such a way that it can easily be extended to also
support e.g. table-based filters.

Due to being unused, the following fields and methods have been marked
as deprecated:
- filterToolBar
- clearButtonControl
- updateToolbar(boolean)

Contributes to
eclipse-platform#2567
@ptziegler
Copy link
Contributor Author

This diff is already pretty big, so I think it's better to separate the refactoring from the FilteredTable implementation.

Copy link
Contributor

Test Results

 1 818 files  ±0   1 818 suites  ±0   1h 34m 30s ⏱️ + 2m 40s
 7 733 tests ±0   7 505 ✅ ±0  228 💤 ±0  0 ❌ ±0 
24 360 runs  ±0  23 611 ✅ ±0  749 💤 ±0  0 ❌ ±0 

Results for commit 8684065. ± Comparison against base commit f5f10d1.

@vogella
Copy link
Contributor

vogella commented Jan 15, 2025

LGTM, also passes all the tests, thanks @ptziegler

@vogella vogella merged commit 176f503 into eclipse-platform:master Jan 15, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants