}
else if (mediator.getCurrentPaths() != null) { // multiple deletion
if (dialog.shouldDelete("selected objects")) {
ProjectPath[] paths = mediator.getCurrentPaths();
CompoundEdit compoundEdit = new RemoveCompoundUndoableEdit();
for (ProjectPath path : paths) {
compoundEdit.addEdit(removeLastPathComponent(path));
}
application.getUndoManager().addEdit(compoundEdit);
}