Package org.openstreetmap.josm.command

Examples of org.openstreetmap.josm.command.Command


        }

        Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected();
        Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection);

        Command c = !Main.main.undoRedo.commands.isEmpty()
        ? Main.main.undoRedo.commands.getLast() : null;

        getCurrentDataSet().beginUpdate();
        if (c instanceof MoveCommand && affectedNodes.equals(((MoveCommand)c).getParticipatingPrimitives())) {
            ((MoveCommand)c).moveAgain(distx, disty);
View Full Code Here


                conflateUnmatchedObjectActionPerformed();
        }

        private void conflateUnmatchedObjectActionPerformed() {
            List<OsmPrimitive> unmatchedObjects = referenceOnlyList.getSelectedValuesList();
            Command cmd = new ConflateUnmatchedObjectCommand(settings.getReferenceLayer(),
                    settings.getSubjectLayer(), unmatchedObjects, referenceOnlyListModel);
            Main.main.undoRedo.add(cmd);
            // TODO: change layer and select newly copied objects?
        }
View Full Code Here

TOP

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

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.