runBuilder(societies[0], false, true);
runBuilder((ModifiableConfigurableComponent)societies[0], false, true);
  public void actionPerformed(ActionEvent e) {    String s = ((AbstractButton)e.getSource()).getActionCommand();    if (s.equals(NEW_MENU_ITEM)) {      newWorkspace();    } else if (s.equals(EXIT_MENU_ITEM)) {      exit();    } else if (s.equals(HELP_MENU_ITEM)) {      URL help = (URL)getClass().getResource(HELP_DOC);      if (help != null)	Browser.setPage(help);    } else if (s.equals(ABOUT_CSMART_ITEM)) {      URL about = (URL)getClass().getResource(ABOUT_DOC);      if (about != null)	Browser.setPage(about);    } else if (s.equals(views[0])) {      SocietyComponent[] societies = organizer.getSelectedSocieties();      // try to create a society if none exists      if (societies == null || societies.length == 0) {	organizer.addSociety();	societies = organizer.getSelectedSocieties();      }      if (societies.length == 1)	runBuilder(societies[0], false, true);      else if (societies.length > 1)	runMultipleBuilders(societies);    } else if (s.equals(views[1])) {    } else if (s.equals(views[2])) {      Experiment[] experiments = organizer.getSelectedExperiments();      if (experiments == null || experiments.length == 0) {	organizer.addExperiment();	experiments = organizer.getSelectedExperiments();      }      if (experiments.length == 1)	runExperimentBuilder(experiments[0], false, true);      else if (experiments.length > 1)	runMultipleExperimentBuilders(experiments);    } else if (s.equals(views[3])) {      Experiment[] experiments = organizer.getSelectedExperiments();      if (experiments.length > 0)        runConsole(experiments[0]);    } else if (s.equals(views[4])) {      runMonitor();    } else if (s.equals(views[5])) {      Experiment[] experiments = organizer.getSelectedExperiments();      if (experiments.length > 0)        runAnalyzer(experiments[0]);    } else { // a frame selected from the window menu      JFrame f = NamedFrame.getNamedFrame().getFrame(s);      if (f != null) {	f.toFront();	f.setState(Frame.NORMAL);      }    }  }