Class cast from ISelection to IStructuredSelection in IObjectActionDelegate.selectionChanged() [message #451452] |
Wed, 02 March 2005 10:53  |
Eclipse User |
|
|
|
Hello,
When contributing to a popup menu extension point with an object
contribution, method IObjectActionDelegate.selectionChanged(IAction
action, ISelection selection) is called every time the user selects or
deselects an item in the visible part.
My question is how to identify the item on which the popup menu was
invoked. I know that in case of a tree, I can do a class cast from
ISelection to IStructuredSelection and get it from there.
The point is I cannot find any documentation that this class cast is
valid. Can someone point me to the right place in the documentation?
Thanks
Christoph
|
|
|
Re: Class cast from ISelection to IStructuredSelection in IObjectActionDelegate.selectionChanged() [message #451455 is a reply to message #451452] |
Wed, 02 March 2005 11:12  |
Eclipse User |
|
|
|
You will get a better response to questions about the UI platform (such as
Actions) in the eclipse.platform newsgroup:
news://news.eclipse.org/eclipse.platform
"Christoph Czernohous" <cc@de.ibm.com> wrote in message
news:d04nib$ec9$1@www.eclipse.org...
> Hello,
>
> When contributing to a popup menu extension point with an object
> contribution, method IObjectActionDelegate.selectionChanged(IAction
> action, ISelection selection) is called every time the user selects or
> deselects an item in the visible part.
>
> My question is how to identify the item on which the popup menu was
> invoked. I know that in case of a tree, I can do a class cast from
> ISelection to IStructuredSelection and get it from there.
> The point is I cannot find any documentation that this class cast is
> valid. Can someone point me to the right place in the documentation?
>
> Thanks
>
> Christoph
|
|
|
Powered by
FUDForum. Page generated in 0.26841 seconds