Change the Label/Tooltip for MenuItem and ToolItem depended on Selection [message #1693355] |
Thu, 23 April 2015 08:49  |
Eclipse User |
|
|
|
Hi everybody!
I have just been asked if it would be possible to change to label (or tooltip) of a MenuItem (or ToolItem) dependend on the current selection. These items could be anywhere including the main menu and/or context menus.
The thinking is to define the label like this:
"lorem ipsum ${<default>;MyItem.myAttribute} dolor"
and then recalculate the the text everytime the active selection changes. The replacement would be calculated using the bean pattern on the selection. If the selection is empty, does not fit the type, or contains multiple elements, the <default> would be used.
Any ideas on how to go about doing this? Would the new message extension be of any help implementing this?
Is there any interest in the community for a feature like this, as we might be able to put some time into this?
Smile
Christoph
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11166 seconds