Home » Eclipse Projects » Rich Client Platform (RCP) » Pass the selection of the Package Explorer into a New Wizard
|
Re: Pass the selection of the Package Explorer into a New Wizard [message #494602 is a reply to message #494402] |
Sat, 31 October 2009 23:57 |
Wim Jongman Messages: 423 Registered: July 2009 |
Senior Member |
|
|
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 21:24 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
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: Wed Sep 25 02:35:04 GMT 2024
Powered by FUDForum. Page generated in 0.04073 seconds
|