Updating command contributions on handler switch [message #1395817] |
Mon, 07 July 2014 08:45  |
Eclipse User |
|
|
|
Hy there,
as described on stackoverflow, i am trying to find a way to update all Contributions (HandledMenuItem, HandledToolItem, ...) allocated to a Command on the switch to a certain handler.
That is (plz refer to the image on stackoverflow), I have globally defined the add command, overriding it with specific behaviour on selection of the resp. part. On doing this I want to update the tooltips of all contributions.
I do not see a clear way to do this, however, but some approaches I can't seem to follow:
- Have a list of all contributions (List<MContribution>) injected to the @CanExecute (Not supported)
- Use the EModelService to find all contributions to a command (Not implemented)
- Something else?
am I missing something? Is there a solution for this? If not I am willing to go for an implementation!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds