Ignore:
Timestamp:
2009-02-16T15:14:34+01:00 (16 years ago)
Author:
stoecker
Message:

applied patch #2185 by bruce89

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r1397 r1415  
    129129    }
    130130
    131     /**
    132      * Try to delete all given primitives.
    133      *
    134      * If a node is used by a way, it's removed from that way. If a node or a way is used by a
    135      * relation, inform the user and do not delete.
    136      *
    137      * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If
    138      * they are part of a relation, inform the user and do not delete.
    139      *
    140      * @param selection The objects to delete.
    141      * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well
    142      * @return command A command to perform the deletions, or null of there is nothing to delete.
    143      */
    144131    private static int testRelation(Relation ref, OsmPrimitive osm) {
    145132        NameVisitor n = new NameVisitor();
     
    175162    }
    176163
     164    /**
     165     * Try to delete all given primitives.
     166     *
     167     * If a node is used by a way, it's removed from that way. If a node or a way is used by a
     168     * relation, inform the user and do not delete.
     169     *
     170     * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If
     171     * they are part of a relation, inform the user and do not delete.
     172     *
     173     * @param selection The objects to delete.
     174     * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well
     175     * @return command A command to perform the deletions, or null of there is nothing to delete.
     176     */
    177177    public static Command delete(Collection<? extends OsmPrimitive> selection, boolean alsoDeleteNodesInWay) {
    178178        if (selection.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.