private void validateNewExperimentName() {

    String name = fExperimentName.getText();
    IWorkspace workspace = fExperimentFolder.getWorkspace();
    IStatus nameStatus = workspace.validateName(name, IResource.FOLDER);

    if ("".equals(name)) { // $NON-NLS-1$
      updateStatus(
          new Status(
              IStatus.ERROR,
              Activator.PLUGIN_ID,
              IStatus.ERROR,
              Messages.Dialog_EmptyNameError,
              null));
      return;
    }

    if (!nameStatus.isOK()) {
      updateStatus(nameStatus);
      return;
    }

    IPath path = new Path(name);
    if (fExperimentFolder.getFolder(path).exists() || fExperimentFolder.getFile(path).exists()) {
      updateStatus(
          new Status(
              IStatus.ERROR,
              Activator.PLUGIN_ID,
              IStatus.ERROR,
              Messages.Dialog_ExistingNameError,
              null));
      return;
    }

    updateStatus(new Status(IStatus.OK, Activator.PLUGIN_ID, "")); // $NON-NLS-1$
  }