@Override public void revert(Document doc) { parent.revertChange(); parent.addLayer(layer, index); doc.reconstructFlatmap(); doc.setCurrent(layer); }