@Override
	public boolean applyTo(Program p) {
		program = p;
		Listing listing = program.getListing();
		try {
			listing.renameTree(oldName, newName);
			return true;
		}
		catch (DuplicateNameException e) {
			statusMsg = e.getMessage();
		}
		return false;
	}
Constructor for RenameTreeCmd.
@param oldName old name of the tree
@param newName new name of the tree
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/module/RenameTreeCmd.java