/**
  * Constructor
  *
  * @param shell The parent shell
  * @param experimentFolder The parent experiment folder element
  */
 public NewExperimentDialog(Shell shell, TmfExperimentFolder experimentFolder) {
   super(shell);
   fExperimentFolderRoot = experimentFolder;
   fExperimentFolder = experimentFolder.getResource();
   setTitle(Messages.NewExperimentDialog_DialogTitle);
   setStatusLineAboveButtons(true);
 }
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {

    // Check if we are closing down
    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    if (window == null) {
      return null;
    }

    // Fire the Select Traces Wizard
    IWorkbench workbench = PlatformUI.getWorkbench();
    Shell shell = workbench.getActiveWorkbenchWindow().getShell();
    TmfExperimentElement experiment = fExperiment;
    if (experiment != null) {
      TmfExperimentFolder experiments = (TmfExperimentFolder) experiment.getParent();
      TmfProjectElement project = (TmfProjectElement) experiments.getParent();
      SelectTracesWizard wizard = new SelectTracesWizard(project, experiment);
      wizard.init(PlatformUI.getWorkbench(), null);
      WizardDialog dialog = new WizardDialog(shell, wizard);
      dialog.open();
    }

    return null;
  }