Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Class cast from ISelection to IStructuredSelection in IObjectActionDelegate.selectionChanged()
Class cast from ISelection to IStructuredSelection in IObjectActionDelegate.selectionChanged() [message #451452] Wed, 02 March 2005 15:53 Go to next message
Christoph Czernohous is currently offline Christoph CzernohousFriend
Messages: 6
Registered: July 2009
Junior Member
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 16:12 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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
Previous Topic:Context menus for default editors
Next Topic:TableViewer SWT.VIRTUAL
Goto Forum:
  


Current Time: Sun Sep 27 01:09:19 GMT 2020

Powered by FUDForum. Page generated in 0.02160 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top