@Override
 protected void okPressed() {
   if (isErrorStatus()) {
     throw new IllegalStateException("The current selection is not valid"); // $NON-NLS-1$
   }
   super.okPressed();
 }
 @Override
 protected void okPressed() {
   String experimentName = fExperimentName.getText();
   if (experimentName == null) {
     return;
   }
   IFolder folder = createNewExperiment(experimentName);
   if (folder == null) {
     return;
   }
   setSelectionResult(new IFolder[] {folder});
   super.okPressed();
 }
 @Override
 protected void okPressed() {
   libraryName = libraryText.getText();
   super.okPressed();
 }