Package tiled.mapeditor.undo

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


        // 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

Related Classes of 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.