List<Selectable> oldSelection,
final boolean oldBasePlanLocked) {
final Selectable [] oldSelectedItems =
oldSelection.toArray(new Selectable [oldSelection.size()]);
final boolean newBasePlanLocked = this.home.isBasePlanLocked();
UndoableEdit undoableEdit = new AbstractUndoableEdit() {
@Override
public void undo() throws CannotUndoException {
super.undo();
doDeleteWalls(new JoinedWall [] {firstJoinedWall, secondJoinedWall}, oldBasePlanLocked);
doAddWalls(new JoinedWall [] {splitJoinedWall}, oldBasePlanLocked);