Package org.openstreetmap.josm.command

Examples of org.openstreetmap.josm.command.ChangeNodesCommand


                    return null;
                }
            } else if(newNodes.size() < 2 && w.getReferrers().isEmpty()) {
                waysToDelete.add(w);
            } else {
                cmds.add(new ChangeNodesCommand(w, newNodes));
            }
        }
        if (!waysToDelete.isEmpty()) {
            cmds.add(new DeleteCommand(waysToDelete));
        }
View Full Code Here


        }
        if (addNodes.isEmpty()) {
            // selectedNode doesn't need unglue
            return false;
        }
        cmds.add(new ChangeNodesCommand(way, newNodes));
        // Update relation
        fixRelations(selectedNode, cmds, addNodes);
        execCommands(cmds, addNodes);
        return true;
     }
View Full Code Here

TOP

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

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.