| Summary: | Accelerators not shown in declarative menu items (commands) | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Andreas Fischl <andreas.r.fischl.work> |
| Component: | JFace | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andreas.r.fischl.work |
| Version: | 2.1 | ||
| Target Milestone: | 2.3 M2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Andreas Fischl
Thanks for reporting. The accelerator support has been enabled in ActionContributionItem with commit 7ccd138f02817ff71d74737a7f14ea0e2452d5dd. Sorry, not completely fixed.
Please open org.eclipse.ui.menus.CommandContributionItem got to the method updateMenuItem(), line 617-632. You'll find a commented out block of code ("[bm] no binding manager") there, and in this block is this commented out line:
item.setText(text + '\t' + keyBindingText);
This line would add the accelerator text to the menu items text (it does so in RCP).
Fixed in master with change https://git.eclipse.org/r/21879 |