Made command labels in E4WorkbenchEditor link to the editor of their respective commands#2330
Merged
merks merged 1 commit intoMay 13, 2026
Conversation
merks
approved these changes
May 11, 2026
Test Results 33 files - 29 33 suites - 29 6m 31s ⏱️ - 10m 58s Results for commit 0b4676f. ± Comparison against base commit 4aca68e. This pull request removes 84 tests.♻️ This comment has been updated with latest results. |
Contributor
|
Unless @laeubi or @HannesWell have concerns this looks good to me. |
HannesWell
reviewed
May 12, 2026
66f3488 to
c1f1aa4
Compare
HannesWell
reviewed
May 13, 2026
Member
HannesWell
left a comment
There was a problem hiding this comment.
Thanks for the update.
This is fine for me, but I'll leave it to @merks to finally decide/submit.
Contributor
c1f1aa4 to
0b4676f
Compare
Contributor
Author
Contributor
|
OMG, yes, the build is in a bit of a mess since yesterday. 😱 I'll try to restart the Jenkins build and hope for the best. |
Contributor
|
Given the Jenkins build passed, I'll ignore the other failures this time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR adds a small QoL feature for navigating E4 application models/fragments with many command definitions: When a keybinding, handler, handled tool item or handled menu item links to a command, the command label is now displayed as a hyperlink. Clicking the link opens the editor of the linked command.
The editor switching functionality was already implemented via org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor.gotoEObject(int, EObject). This PR just hooks up the functionality to the corresponding labels.
How to test
Alternative designs
I've considered adding a new command creation wizard which would open when clicking the label while no command is set (like it is done for the "Class URI" label of handlers), but ultimately decided against it since that would offer little additional benefit while adding yet another part to the editor which must be kept in sync with the underlying Ecore model.
Note: I did not add tests for this change as there are no tests for the model editor (or the org.eclipse.e4.tools.emf.ui bundle) as of now. Adding such a test bundle is currently in discussion via #2320