- Timestamp:
- 2013-10-15T09:44:39+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CopyAction.java
r6069 r6320 14 14 import org.openstreetmap.josm.Main; 15 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 16 17 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 17 18 import org.openstreetmap.josm.tools.Shortcut; … … 43 44 44 45 /** 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 46 48 * @param source The OSM data layer source 47 49 * @param primitives The OSM primitives to copy … … 51 53 StringBuilder idsBuilder = new StringBuilder(); 52 54 for (OsmPrimitive p : primitives) { 55 idsBuilder.append(OsmPrimitiveType.from(p)).append(" "); 53 56 idsBuilder.append(p.getId()).append(","); 54 57 }
Note:
See TracChangeset
for help on using the changeset viewer.