doPerformAction();
// Capture the layers after the operation is executed and create the
// layer state edit instance.
Vector layersAfter = new Vector(map.getLayerVector());
MapLayerStateEdit mapLayerStateEdit =
new MapLayerStateEdit(map, layersBefore, layersAfter,
e.getActionCommand());
editor.getUndoSupport().postEdit(mapLayerStateEdit);
}