Examples of MapLayerStateEdit


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

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

    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

Examples of tiled.mapeditor.undo.MapLayerStateEdit

        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);
    }
View Full Code Here

Examples of tiled.mapeditor.undo.MapLayerStateEdit

        // layer state edit instance.
        Vector<MapLayer> layersAfter = new Vector<MapLayer>(map.getLayerVector());
        String text = getText();
        if (action != null )
          text = action.getText();
        MapLayerStateEdit mapLayerStateEdit = 
                new MapLayerStateEdit(editor, layersBefore, layersAfter,
                                      text,oldIdx,newIdx);
        editor.addEdit(mapLayerStateEdit);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.