|
Re: Selection service is triggered on focus for a treeviewer ? [message #1059515 is a reply to message #1059200] |
Mon, 20 May 2013 08:23 |
Eclipse User |
|
|
|
I'm not sure I got this correctly but if you have two parts which have set a selection (have an entry in the tree selected) and a single point of consumption, the selection at a certain point in time is called the selection in anyone of the trees which is focused, no (*active*_selection)? Suppose you have 10 parts and all of them have tree viewers, which one would you call the selected object to be consumed in the 11th part? In the IDE for example you can have the Outline and the Project Explorer trees which both have a selection but one has focus and the other is selected but not focused (it is grayed out). At that moment the active selection makes sense to be the focused one.
Internally this happens because of the switching of the active context which causes a reinjection. If you don't want this behavior than put the values in the parent context with separate keys so you can respond differently to selection change in different parts.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04550 seconds