|Programmatically update all tooltips when context changes? [message #1792722]
||Mon, 23 July 2018 08:49
| Sascha Becher
Registered: December 2009
I'm using the compatiblity layer under e4.|
When switching contexts, the keybindings in tooltips of commands are not updated.
Two different editors with the same command are side-by-side.
The command has two keybindings for different contexts.
A part listener switches context when the editor is activated.
Although the keybindings are changed correctly, they are not displayed in the tooltips of the command.
MLocalizable#updateLocalization only updates the localization but not the keybinding.
HandledContributionItem#updateMenuItem seems to update a tooltip with the keybinding,
but I have no idea how to obtain all these items using the ModelService#findElements to call this method.
Could you please hint me at what to update when switching the context?
[Updated on: Mon, 23 July 2018 08:52]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02010 seconds