After some more playing around, the former seems to be where the mouse
was pointing at the moment of the right-click. The later seems to be
where the cursor was.
Paul Glezen wrote:
> A HandlerUtil is often used to extract info from an ExcutionEvent during
> command handler execution. The API docs list two methods in particular:
>
> - getCurrentSelection
> - getShowInSelection
>
> What's the difference? The latter's description mentions a
> ShowInContext selection. But I can't determine what this means.
>
> - Paul
Paul Glezen wrote:
> After some more playing around, the former seems to be where the mouse
> was pointing at the moment of the right-click. The later seems to be
> where the cursor was.
I don't think that this is the correct interpretation. "ShowInContext"
has a special meaning for parts, see
Thanks for the link, Dan. I wasn't even aware of such a feature.
Daniel Krügler wrote:
> Paul Glezen wrote:
>> After some more playing around, the former seems to be where the mouse
>> was pointing at the moment of the right-click. The later seems to be
>> where the cursor was.
>
> I don't think that this is the correct interpretation. "ShowInContext"
> has a special meaning for parts, see
>
> http://wiki.eclipse.org/FAQ_How_do_I_make_my_view_appear_in_ the_Show_In_menu%3F
>
>
> So my assumption is, that by quereing getShowInSelection() you will only
> catch current selections from parts that implement IShowInSource.
>
> HTH & Greetings from Bremen,
>
> Daniel Krügler