-
Notifications
You must be signed in to change notification settings - Fork 214
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? |
|
I think this is ok - I have added it to the agenda of the CDT call today #1340 to progress this. I checked the help - and the two references to it in the help only refer to the Debug View anyway: |
|
The consensus at the CDT call was to leave it in the main tool bar/Run menu, but for me to spend some time understanding what the issues here are. My initial understanding of the current implementation contributed in #1221 the buttons won't appear if there is no active debug that the buttons apply to. However #1143 (comment) points out that because of a (unfixable) bug in the Eclipse Platform the icons still appear. On reviewing the impact of these buttons polluting the UI when CDT isn't in use, and that CDT itself has the instruction step documented as being in the Debug view I would recommend merging this. During the CDT call @Kummallinen / @Torbjorn-Svensson were concerned about this change (#1221 (comment) ) - and they were involved in the previous discussions in #866 - so I want to wait for them to 👍 or 👎 this change. |
|
Can we move these to a "org.eclipse.cdt.embedded.ui" bundle, or similar? That can be installed by people doing embedded development who will want this function and/or included by vendors using CDT. Could then be used for other similar things in future. |
Kummallinen
left a comment
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.
See my previous comment about moving to a new bundle.
(forgot to make that as a proper review comment)
This is interesting direction of discussion, since we already had a few points (re: Core Build vs MBS ) where preferences of embedded developers may be different. |
|
This seems stuck again - moving to a draft until we have a proposal that is widely acceptable by current CDT committers. |


As ToggleInstructionStepModeCommand is contributed in too many places. We can remove it from Main Toolbar and Run Command.
see #1142