IIdentityModel identityModel = workspace.getIdentityModel();
IdentityWizard wizard = new IdentityWizard();
IdentityWizardDialog dialog = new IdentityWizardDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell(), wizard);
if (dialog.open() == IDialogConstants.OK_ID) {
IIdentity identity = wizard.getIdentity();
identityModel.store(identity);
}
}
return null;
}