Skip to content

Filtered tree is implemented for Marker Support Views. - #4208

Draft
raghucssit wants to merge 1 commit into
eclipse-platform:masterfrom
raghucssit:markers_view_filtered_tree
Draft

Filtered tree is implemented for Marker Support Views.#4208
raghucssit wants to merge 1 commit into
eclipse-platform:masterfrom
raghucssit:markers_view_filtered_tree

Conversation

@raghucssit

Copy link
Copy Markdown
Contributor

Bookmarks View, Problems View and Tasks Views will have a search filter box.

see #4204

Bookmarks View, Problems View and Tasks Views will have a search filter
box.

see eclipse-platform#4204
Copilot AI review requested due to automatic review settings July 28, 2026 07:54
@raghucssit
raghucssit marked this pull request as draft July 28, 2026 07:54
@raghucssit

Copy link
Copy Markdown
Contributor Author

@iloveeclipse Initial implementation of filtered tree.. Please check if it looks good.
image

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a search-based filtering UI (a FilteredTree search box) to Marker Support Views (e.g., Bookmarks/Problems/Tasks) by wrapping the existing markers TreeViewer in a filtered tree and providing a marker-specific PatternFilter implementation.

Changes:

  • Introduces a MarkersFilteredTree that hosts the existing MarkersTreeViewer while adding a filter text box.
  • Adds MarkerPatternFilter to match markers against the values of all currently visible marker fields/columns.
  • Externalizes the filter box initial text and adds the required bundle dependency for org.eclipse.e4.ui.dialogs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/messages.properties Adds an externalized string for the filter box initial text.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerMessages.java Adds the corresponding NLS field for the new message key.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersFilteredTree.java New FilteredTree subclass that creates the markers-specific TreeViewer.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPatternFilter.java New PatternFilter that matches concrete markers based on visible column values.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java Replaces direct Tree creation with the new filtered tree and wires the initial text.
bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF Adds org.eclipse.e4.ui.dialogs to Require-Bundle for FilteredTree/PatternFilter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iloveeclipse

Copy link
Copy Markdown
Member

Is it possible to hide the filter line (like in the Error Log view)?

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±  0     855 suites  ±0   43m 56s ⏱️ - 16m 49s
 8 120 tests ±  0   7 877 ✅ ±  0  243 💤 ± 0  0 ❌ ±0 
19 959 runs   - 303  19 365 ✅  - 243  594 💤  - 60  0 ❌ ±0 

Results for commit 16d6b3c. ± Comparison against base commit 04c96e4.

@raghucssit

Copy link
Copy Markdown
Contributor Author

Is it possible to hide the filter line (like in the Error Log view)?

I will implement a preference for this like Error Log view. Which can be turned ON and OFF.

}

@Override
protected TreeViewer doCreateTreeViewer(Composite parent, int style) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the parameter, see compiler warning below which fails the build validation.

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.

3 participants