Examples of AddPrimitivesCommand


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

Examples of org.openstreetmap.josm.command.AddPrimitivesCommand

        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

Examples of org.openstreetmap.josm.command.AddPrimitivesCommand

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