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 #61832] Thu, 14 May 2009 20:18
Eclipse UserFriend
Originally posted by: vacrodrigues.gmail.com

Hello,

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

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
folder.

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,
Vitor
Previous Topic:Setting org.eclipse.update.reconcile to true in headless product build
Next Topic:ImportExportWizard with modified selection from ImportResourceAction
Goto Forum:
  


Current Time: Wed Jun 16 01:20:48 GMT 2021

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

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

Back to the top