Changeset 34909 in osm for applications/editors/josm
- Timestamp:
- 2019-03-06T17:02:52+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/TagBufferAction.java
r34812 r34909 27 27 */ 28 28 public class TagBufferAction extends JosmAction { 29 private static final String TITLE = tr(" Copytags from previous selection");29 private static final String TITLE = tr("Paste tags from previous selection"); 30 30 private static final TagCollection EmptyTags = new TagCollection(); 31 private List<OsmPrimitive> selectionBuf = new ArrayList<>();31 private transient List<OsmPrimitive> selectionBuf = new ArrayList<>(); 32 32 private TagCollection tagsToPaste = EmptyTags; 33 33 /** … … 35 35 */ 36 36 public TagBufferAction() { 37 super(TITLE, "dumbutils/tagbuffer", tr("Paste s tags of previously selected object(s)"),38 Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr(" Copytags from previous selection")),37 super(TITLE, "dumbutils/tagbuffer", tr("Paste tags from previous selection"), 38 Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr("Paste tags from previous selection")), 39 39 KeyEvent.VK_R, Shortcut.SHIFT), 40 40 true, false); … … 95 95 return EmptyTags; 96 96 // Fix #8350 - only care about tagged objects 97 return TagCollection.commonToAllPrimitives(SubclassFilteredCollection.filter(selection, p -> p.isTagged()));97 return TagCollection.commonToAllPrimitives(SubclassFilteredCollection.filter(selection, OsmPrimitive::isTagged)); 98 98 } 99 99 }
Note:
See TracChangeset
for help on using the changeset viewer.