ssel = convertToResources(ssel);
if (selectedProject != null) {
try {
// create the wizard
// PearExportWizard wizard = new PearExportWizard();
GeneratePearWizard wizard = new GeneratePearWizard(selectedProject);
// Initialize the wizard
wizard.init(PlatformUI.getWorkbench(), ssel);
// Create the dialog to wrap the wizard
WizardDialog dialog = new WizardDialog(shell, wizard);
// Open Wizard Dialog