Package de.yaams.extensions.basemap.tiled.mapeditor.undo

Examples of de.yaams.extensions.basemap.tiled.mapeditor.undo.MapLayerStateEdit


      if (currentMap != null && clipboardLayer != null) {
        Vector<MapLayer> layersBefore = currentMap.getLayerVector();
        MapLayer ml = createLayerCopy(clipboardLayer);
        ml.setName(Resources.getString("general.layer.layer") + " " + currentMap.getTotalLayers());
        currentMap.addLayer(ml);
        undoSupport.postEdit(new MapLayerStateEdit(currentMap, layersBefore, new Vector<MapLayer>(currentMap.getLayerVector()),
            "Paste Selection"));
      }
    }
View Full Code Here


    doPerformAction();

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

TOP

Related Classes of de.yaams.extensions.basemap.tiled.mapeditor.undo.MapLayerStateEdit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.