selectedProjects.add( ( ( ProjectWrapper ) i.next() ).getProject() );
}
}
// Instantiates and initializes the wizard
ExportProjectsWizard wizard = new ExportProjectsWizard();
wizard.setSelectedProjects( selectedProjects.toArray( new Project[0] ) );
wizard.init( PlatformUI.getWorkbench(), StructuredSelection.EMPTY );
// Instantiates the wizard container with the wizard and opens it
WizardDialog dialog = new WizardDialog( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard );
dialog.create();
dialog.open();
}