Home » Eclipse Projects » Rich Client Platform (RCP) » Pass the selection of the Package Explorer into a New Wizard
Pass the selection of the Package Explorer into a New Wizard [message #494402] |
Fri, 30 October 2009 10:14  |
Eclipse User |
|
|
|
Hi all,
how can i pass the selection of an IResource, which is selected in the
Package Explorer, into a Wizard? I thought, this will be covered by the
ISelection and init(IWorkbench,ISelection), which is generated by
default, but that is not true.
Can someone give me a hint?
Thanks a lot
Timothy
|
|
|
Re: Pass the selection of the Package Explorer into a New Wizard [message #494602 is a reply to message #494402] |
Sat, 31 October 2009 19:57   |
Eclipse User |
|
|
|
Hi Timothy,
Can't you get the current selection in your wizard?
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSele ctionService().getSelection()
Best regards,
Wim
> Hi all,
>
> how can i pass the selection of an IResource, which is selected in the
> Package Explorer, into a Wizard? I thought, this will be covered by the
> ISelection and init(IWorkbench,ISelection), which is generated by
> default, but that is not true.
>
> Can someone give me a hint?
>
> Thanks a lot
> Timothy
|
|
| |
Re: Pass the selection of the Package Explorer into a New Wizard [message #494654 is a reply to message #494402] |
Sun, 01 November 2009 16:24  |
Eclipse User |
|
|
|
Hi,
@Wim: Well, with
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSele ctionService().getSelection()
the currently selected resource is accessible. Thanks for this advice.
@Remy:
However, the ISelection object in the init-Method, which is called, is
empty. I think, this ISelection object should not be null, should it?
Thanks
Timothy
Timothy Marc schrieb:
> Hi all,
>
> how can i pass the selection of an IResource, which is selected in the
> Package Explorer, into a Wizard? I thought, this will be covered by the
> ISelection and init(IWorkbench,ISelection), which is generated by
> default, but that is not true.
>
> Can someone give me a hint?
>
> Thanks a lot
> Timothy
|
|
|
Goto Forum:
Current Time: Tue Jul 22 18:25:29 EDT 2025
Powered by FUDForum. Page generated in 0.24709 seconds
|