Package org.openstreetmap.josm.command

Examples of org.openstreetmap.josm.command.AddPrimitivesCommand


            }
        }

        /* Now execute the commands to add the duplicated contents of the paste buffer to the map */

        Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy, toSelect));
        Main.map.mapView.repaint();
    }
View Full Code Here


        if (targetDataSet != sourceDataSet) {
            // TODO: use MergeCommand instead?
            List<PrimitiveData> newObjects = ConflationUtils.copyObjects(sourceDataSet, match.getReferenceObject());

            // FIXME: bad form to execute command in constructor, how to fix?
            addPrimitivesCommand = new AddPrimitivesCommand(newObjects, newObjects, settings.getSubjectLayer());
            if (!addPrimitivesCommand.executeCommand())
                throw new AssertionError();
        }

        // need to copy from other layer before this?
View Full Code Here

        this.unmatchedObjects = unmatchedObjects;
        this.listModel = listModel;

        List<PrimitiveData> newObjects = ConflationUtils.copyObjects(sourceDataLayer.data, unmatchedObjects);

        addPrimitivesCommand = new AddPrimitivesCommand(newObjects, newObjects, targetDataLayer);
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.command.AddPrimitivesCommand

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.