Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » ImportExportWizard with modified selection from ImportResourceAction
ImportExportWizard with modified selection from ImportResourceAction [message #597499] Thu, 14 May 2009 20:18
Vitor Rodrigues is currently offline Vitor RodriguesFriend
Messages: 2
Registered: July 2009
Junior Member

is there any way one can modify the IStructuredSelection object used by the

When a user clicks on a virtual folder and selects Import, I would like to
launch the ImportExportWizard using the project as the selection instead
of the virtual folder, since the project folder is the location where the
imported files/resources will go.

I am using ImportResourceAction as the menu action and tried modifying the
selection passed in selectionChanged(), but it appears that the ImportExportWizard
gets the selection from the ExecutionEvent application context and not from
the action itself. This context still has the initial selection of the virtual

Is there any way I can have the wizard pick up the modified selection, or
is it possible to modify this application context? One solution that works
is to implement my own action that creates the wizard and passes the modified
selection to the init() method, but that would create undesirable dependencies
on eclipse internal classes.

Thank you,
Previous Topic:ImportExportWizard with modified selection from ImportResourceAction
Next Topic:--launcher.ini doesn't work in Run Configuration
Goto Forum:

Current Time: Mon Sep 26 03:41:21 GMT 2022

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

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

Back to the top