Changeset 10605 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-07-23T15:15:14+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CopyAction.java
r10604 r10605 19 19 import org.openstreetmap.josm.gui.datatransfer.PrimitiveTransferable; 20 20 import org.openstreetmap.josm.gui.datatransfer.data.PrimitiveTransferData; 21 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 21 22 import org.openstreetmap.josm.tools.Shortcut; 22 23 … … 48 49 } 49 50 50 copy( selection);51 copy(getLayerManager().getEditLayer(), selection); 51 52 } 52 53 … … 54 55 * Copies the given primitive ids to the clipboard. The output by this function 55 56 * looks similar to: node 1089302677,node 1089303458,way 93793372 57 * @param source The OSM data layer source 56 58 * @param primitives The OSM primitives to copy 57 59 */ 58 public static void copy( Collection<OsmPrimitive> primitives) {60 public static void copy(OsmDataLayer source, Collection<OsmPrimitive> primitives) { 59 61 // copy ids to the clipboard 60 ClipboardUtils.copy(new PrimitiveTransferable(PrimitiveTransferData.getDataWithReferences(primitives) ));62 ClipboardUtils.copy(new PrimitiveTransferable(PrimitiveTransferData.getDataWithReferences(primitives), source)); 61 63 } 62 64
Note:
See TracChangeset
for help on using the changeset viewer.