-
Notifications
You must be signed in to change notification settings - Fork 216
Remove ToggleInstructionStepModeCommand from Run Menu and Main Toolbar. #1143
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
base: main
Are you sure you want to change the base?
Conversation
a2afce3
to
a926d7f
Compare
Test Results 636 files 636 suites 35m 57s ⏱️ For more details on these failures, see this check. Results for commit 3e4a9d5. ♻️ This comment has been updated with latest results. |
@jonahgraham : a review is welcome. |
@jonahgraham The motivation for this fix is, " If property tester which decides the command has to the visible or not is not loaded then command is visible by default". Once the Property Tester is loaded by any dependents on the platform then it checks with the property tester and hides it. This is a bug/limitation in the eclipse platform. |
😢 I'm sorry that this slipped through the cracks - I was having extended down time when this came in. |
@Kummallinen / @Torbjorn-Svensson (or any other CDT committer, especially one that has a CDT based product): WDYT about removing instruction stepping mode from the main toolbar? Do your products rely/expect this? If so, can we put the onus on the product integrator to add this button back in for their use cases? |
So far no feedback. Can we merge and see if anyone complains? I guess not :-) |
Sorry only just saw the notification for this. For embedded development this is commonly used so would annoy our users if it were removed. While we can put it back for our products users of Embedded CDT would likely miss it & users of multiple plugins sets may end up with duplicates if vendors need to add this back in themselves |
The original issue is that the button is shown in non-CDT context as long as CDT is not loaded. This is a limitation of an extension point because it has to use tester classes to check the button / CDT debugging state, and we don't want CDT to be loaded if it is not used. What about following options:
WDYT? |
What if we add an "id" attribute for these contributions to let interested parties filter them out with E3 activity? |
Thank you! Since command
As a result, we may have something like We use this approach for our products and recommend it to our customers because it greatly simplifies code maintenance. |
Please check this PR. |
@raghucssit : please update this PR, it has merge issues. |
As ToggleInstructionStepModeCommand is contributed in too many places. We can remove it from Main Toolbar and Run Command. see eclipse-cdt#1142
a926d7f
to
3e4a9d5
Compare
@iloveeclipse |
Ideally users shouldn't need to use "low-level" and not well known features like Capabilities to have a clean and not overloaded UI. So while one could deactivate the extra buttons/menus via Capabilities, better to have clean UI from beginning. So would be nice if someone from CDT team could review this PR. Maybe @jld01? |
As ToggleInstructionStepModeCommand is contributed in too many places. We can remove it from Main Toolbar and Run Command.
see #1142