Changeset 5275 in josm for trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
- Timestamp:
- 2012-06-09T20:03:41+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r5266 r5275 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 // Author: David Earl3 2 package org.openstreetmap.josm.actions; 4 3 … … 29 28 import org.openstreetmap.josm.tools.Shortcut; 30 29 30 /** 31 * Action, to paste all tags from one primitive to another. 32 * 33 * It will take the primitive from the copy-paste buffer an apply all its tags 34 * to the selected primitive(s). 35 * 36 * @author David Earl 37 */ 31 38 public final class PasteTagsAction extends JosmAction implements PasteBufferChangedListener { 32 39 … … 54 61 * Replies true if the source for tag pasting is heterogeneous, i.e. if it doesn't consist of 55 62 * {@link OsmPrimitive}s of exactly one type 56 *57 * @return58 63 */ 59 64 protected boolean isHeteogeneousSource() { … … 130 135 131 136 /** 132 * Pastes the tags from a homogeneous source ( i.e.the {@link Main#pasteBuffer}s selection consisting133 * of one type of {@link OsmPrimitive}s only .137 * Pastes the tags from a homogeneous source (the {@link Main#pasteBuffer}s selection consisting 138 * of one type of {@link OsmPrimitive}s only). 134 139 * 135 140 * Tags from a homogeneous source can be pasted to a heterogeneous target. All target primitives, 136 141 * regardless of their type, receive the same tags. 137 *138 * @param targets the collection of target primitives139 142 */ 140 143 protected void pasteFromHomogeneousSource() { … … 166 169 167 170 /** 168 * Replies true if there is at least one primitive of type <code>type</code> in the collection 169 * <code>selection</code> 170 * 171 * @param <T> 172 * @param selection the collection of primitives 171 * Replies true if there is at least one primitive of type <code>type</code> 172 * is in the target collection 173 * 174 * @param <T> 173 175 * @param type the type to look for 174 176 * @return true if there is at least one primitive of type <code>type</code> in the collection … … 199 201 * Pastes the tags in the current selection of the paste buffer to a set of target 200 202 * primitives. 201 *202 * @param targets the collection of target primitives203 203 */ 204 204 protected void pasteFromHeterogeneousSource() {
Note:
See TracChangeset
for help on using the changeset viewer.