Ignore:
Timestamp:
2013-10-15T09:44:39+02:00 (6 years ago)
Author:
xeen
Message:

include primitive type when copying IDs to clipboard (fixes #4644)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CopyAction.java

    r6069 r6320  
    1414import org.openstreetmap.josm.Main;
    1515import org.openstreetmap.josm.data.osm.OsmPrimitive;
     16import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    1617import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1718import org.openstreetmap.josm.tools.Shortcut;
     
    4344
    4445    /**
    45      * Copies the given primitive ids to the clipboard.
     46     * Copies the given primitive ids to the clipboard. The output by this function
     47     * looks similar to: node 1089302677,node 1089303458,way 93793372
    4648     * @param source The OSM data layer source
    4749     * @param primitives The OSM primitives to copy
     
    5153        StringBuilder idsBuilder = new StringBuilder();
    5254        for (OsmPrimitive p : primitives) {
     55            idsBuilder.append(OsmPrimitiveType.from(p)).append(" ");
    5356            idsBuilder.append(p.getId()).append(",");
    5457        }
Note: See TracChangeset for help on using the changeset viewer.