public class NewS3D extends AbstractHandler {
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
NewS3DWizard wizard = new NewS3DWizard();
IStructuredSelection selection = XVRUtils.getSelectionFromEvent(event);
if(selection == null)
throw new ExecutionException("Empty selection");
wizard.init(HandlerUtil.getActiveWorkbenchWindow(event).getWorkbench(), selection);
WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), wizard);
dialog.open();
return null;
}