public void runExperimentBuilder(Experiment experiment, boolean alwaysNew, boolean openForEditing) { if (!experiment.isEditable() && openForEditing) {
public void runExperimentBuilder(Experiment experiment, boolean alwaysNew) { if (!experiment.isEditable()) {
  public void runExperimentBuilder(Experiment experiment, boolean alwaysNew,				   boolean openForEditing) {    if (!experiment.isEditable() && openForEditing) {      Object[] options = { "Edit", "View", "Copy", "Cancel" };      int result =         JOptionPane.showOptionDialog(this,                                     experiment.getShortName() + " has been run",                                     "Experiment Not Editable",                                     JOptionPane.DEFAULT_OPTION,                                     JOptionPane.WARNING_MESSAGE,                                     null,                                     options,                                     options[0]);      if (result == 0) {        // edit it anyway        experiment.setEditable(true);      } else if (result == 2) {        // copy it        experiment = organizer.copyExperiment(experiment, null);      } else if (result != 1)        // user cancelled        return;    }    Class[] paramClasses = { CSMART.class, Experiment.class };    Object[] params = new Object[2];    params[0] = this;    params[1] = experiment;    createTool("Experiment Builder", ExperimentBuilder.class, 	       alwaysNew, experiment.getExperimentName(), experiment,	       paramClasses, params);  }