-
Notifications
You must be signed in to change notification settings - Fork 124
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
[Debug] Add checkbox to toggle display of shortcut numbers in breakpoint grouping types #1772
Conversation
Hi @merks , could you please check this small PR when you have time ? |
Those numbers act as accelerators though and I think those names don't come from menu item text where an |
Thanks for the feedback! Just to clarify, this change does affect the functionality in that it allows users to disable the shortcut numbers (and accelerators) in the breakpoint grouping list. By default, the shortcut numbers will be enabled, but if users prefer to disable them, they can easily do so by unchecking the new option in the UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that you've properly tested that these changes will be preserved on restart. In particular you should look carefully at what org.eclipse.debug.internal.core.Preferences.setDefaultBoolean(String, String, boolean)
does versus what org.eclipse.debug.internal.core.Preferences.setBoolean(String, String, boolean, IScopeContext)
does. I don't think it's generally a good idea to call org.eclipse.debug.internal.core.Preferences.getDefaultBoolean(String, String, boolean)
except to determine the default value of the preference. When saving the value, it should be saved in the instance scope so when asking for the preference value, you should look it up in instance scope.
E.g.,
I question whether the extra logic here will really be of benefit to a significant number of users, but that's just my sense. In any case, the current way to looking up and storing the preference when the user does change it is not correct.
1a350ef
to
feb5023
Compare
Thanks for checking Restart case and code suggestion. I have made the changes accordingly and tested the restart case 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should get at least one other committer to review this.
Do you have an opinion about the functionality, the names, and the labels?
...g.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupBreakpointsByDialog.java
Outdated
Show resolved
Hide resolved
...ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/BreakpointGroupMessages.properties
Outdated
Show resolved
Hide resolved
feb5023
to
04b756e
Compare
...g.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointGroups/GroupBreakpointsByAction.java
Outdated
Show resolved
Hide resolved
I'm mostly neutral here, I've never used / noticed the shortcuts shown and would not miss them if they would be hidden. But code wise looks OK and defaults are not changed, so LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine once @iloveeclipse approves.
0f9b44f
to
0ae3c8d
Compare
0ae3c8d
to
3ade24b
Compare
Hi @iloveeclipse , I have made the changes you suggested. |
grouping types Introduced a new checkbox to control the visibility of shortcut numbers in the selection list for breakpoint grouping types. By default, shortcut numbers are shown, and users can disable them using the checkbox if desired.
3ade24b
to
75ec99f
Compare
Thank you @iloveeclipse & @merks |
This PR introduces a new checkbox to toggle the display of shortcut numbers in the selection list for breakpoint grouping types. By default, shortcut numbers will be shown but it can be disabled for ensuring consistency with other selection lists that do not display these numbers. Users can enable the shortcut numbers by checking the new checkbox, providing more flexibility while maintaining UI consistency.
Before :

After :



By default it will show the shortcut numbers
Added a checkbox to enable or disable
Unchecking the option will result in list with no shortcut numbers ensuring consistency with other selection lists that do not display these numbers