[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Popup Menu item enablement

Zheng Xie wrote:
I enable/disable an action in the selectionChanged() event, see below:
...
The problem I have is, when the outside condition is changed, if the user come back to the same selected tree item, selectionChanged() is not triggered, even the enablement should be changed for "publish", it won't happen.


There's no built-in solution for that case, AFAIK; I had a somewhat similar issue, and dealt with it by having the outside condition-changing event *send* a new SelectionChangedEvent to the SelectionProvider that the action is listenng to. Perhaps some similar solution would work for you?


HTH,
Paul