public override bool combine(Tool other) { if (other is ChangeNameTool) { ChangeNameTool cnt = (ChangeNameTool)other; if (cnt.named == named && cnt.oldName == name) { name = cnt.name; timeStamp = cnt.timeStamp; return(true); } } return(false); }
/** * Sets the new name of the scene. * * @param name * Name of the scene */ public void setName(string name) { ChangeNameTool tool = new ChangeNameTool(scene, name); controller.addTool(tool); }