WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
dialog.open();
}
public static void createNewProcessDefinition(IStructuredSelection selection) {
NewProcessDefinitionWizard wizard = new NewProcessDefinitionWizard();
wizard.init(PlatformUI.getWorkbench(), (IStructuredSelection) selection);
WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
dialog.open();
}