update();
if (doWorkspace) update();
  protected void renameWorkspace() {    String name = JOptionPane.showInputDialog("New workspace name");    if (name == null || name.equals(""))      return;    workspaceFileName = name;    String rootName = this.workspaceFileName;    int extpos = this.workspaceFileName.lastIndexOf('.');    if (extpos >= 0) {      rootName = rootName.substring(0, extpos);    }    root.setUserObject(rootName);    model.nodeChanged(root);    update();  }