Prompt to save changes when closing Organize Favorites dialog - #2825
Conversation
|
Why not simply save on OK, without dialog? |
it saves on clicking |
7f27314 to
96dae57
Compare
|
Hi @iloveeclipse, |
There was a problem hiding this comment.
Pull request overview
Adds a save-confirmation flow to the Debug UI “Organize Favorites” dialog so users are prompted to save when closing the dialog with unsaved changes, reducing accidental loss of edits to the favorites list.
Changes:
- Added new externalized UI strings for a “save changes before closing” prompt.
- Added “dirty” detection and close-interception logic in
FavoritesDialog(Cancel and window-close paths). - Minor refactor in favorites-saving code (iterator → enhanced for-loop).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties | Adds externalized strings for the new close/save prompt. |
| debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java | Declares new NLS message fields for the added prompt strings. |
| debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/FavoritesDialog.java | Implements dirty tracking and prompts on Cancel / shell-close; minor loop refactor in saving logic. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
96dae57 to
449bca5
Compare
|
Hi @iloveeclipse, |
Prompt users to save changes before closing the Organize Favorites dialog when the favorites list has been modified. This prevents accidentally losing changes made to the favorites list when the dialog is closed without pressing OK.
449bca5 to
3e2086e
Compare
|
Thanks. |
Prompt users to save changes before closing the Organize Favorites dialog when the favorites list has been modified. This prevents accidentally losing changes made to the favorites list when the dialog is closed without pressing OK.