Skip to content

Preserve breakpoint check state across filter changes - #2880

Open
SougandhS wants to merge 2 commits into
eclipse-platform:masterfrom
SougandhS:filterFix
Open

SougandhS wants to merge 2 commits into
eclipse-platform:masterfrom
SougandhS:filterFix

Conversation

@SougandhS

Copy link
Copy Markdown
Contributor

Typing in the filter was changing which breakpoints were checked, because refreshing the tree after a filter change also reset which items were checked.

See : #2794 (comment)

@SougandhS
SougandhS marked this pull request as draft August 17, 2026 08:39
@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   39m 43s ⏱️ + 1m 53s
 5 029 tests ±0   5 007 ✅ +1   22 💤 ±0  0 ❌ ±0 
12 978 runs  ±0  12 824 ✅ +1  154 💤 ±0  0 ❌ ±0 

Results for commit 5a6b6f6. ± Comparison against base commit a399aac.

♻️ This comment has been updated with latest results.

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.

🟡 Changes recommended

Breakpoint selection tracking becomes stale after bulk actions or import preview refreshes, and filtered-out selections are omitted from import/export operations.

3 open issues
What changed in this PR

Adds checked-state tracking to the shared Import/Export Breakpoint viewer to preserve selections across filter changes, following #2794.

Changes:

  • Tracks initially selected breakpoints and user checkbox changes.
  • Reapplies tracked checkbox states after filter-triggered refreshes.
File Description
debug/​org.eclipse.debug.ui/​ui/​org/​eclipse/​debug/​internal/​ui/​importexport/​breakpoints/​EmbeddedBreakpointsViewer.java Tracks checked breakpoints and restores checkbox states after filtering.

Review effort: Balanced

Preserve breakpoint check state while doing filtering in Export/Import
Breakpoints

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.

🟡 Changes recommended

Organizer-driven refreshes can desynchronize visible checks from export selections, and Deselect All incorrectly disables Finish when filtered-out breakpoints remain selected.

4 open issues
1 resolved since last review

Review effort: Balanced

Comment on lines +128 to +129
// refresh() resets the check boxes from the breakpoint enablement, repaint them
refreshCheckedState();
Comment on lines +162 to 164
fTView.deselectAll();
setErrorMessage(ImportExportMessages.WizardImportBreakpointsSelectionPage_1);
setPageComplete(false);
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