Workflow workflow=new Workflow(new State[]{resourceSelectionState});
workflow.setContext(resources);
WorkflowWizard wizard = new WorkflowWizard(workflow, pageMapping);
WorkflowWizardDialog dialog = new WorkflowWizardDialog(Display.getCurrent().getActiveShell(), wizard);
dialog.setBlockOnOpen(true);
dialog.open();
if (dialog.getReturnCode()==IDialogConstants.CANCEL_ID )
return null;
resources=resourceSelectionState.getResources().keySet();
}
return resources;