Ignore:
Timestamp:
2019-03-06T17:02:52+01:00 (5 years ago)
Author:
gerdp
Message:

fix #16711: Rename "Copy tags from previous selection" to "Paste tags from previous selection" (utilsplugin2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/TagBufferAction.java

    r34812 r34909  
    2727 */
    2828public class TagBufferAction extends JosmAction {
    29     private static final String TITLE = tr("Copy tags from previous selection");
     29    private static final String TITLE = tr("Paste tags from previous selection");
    3030    private static final TagCollection EmptyTags = new TagCollection();
    31     private List<OsmPrimitive> selectionBuf = new ArrayList<>();
     31    private transient List<OsmPrimitive> selectionBuf = new ArrayList<>();
    3232    private TagCollection tagsToPaste = EmptyTags;
    3333    /**
     
    3535     */
    3636    public TagBufferAction() {
    37         super(TITLE, "dumbutils/tagbuffer", tr("Pastes tags of previously selected object(s)"),
    38                 Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr("Copy tags 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")),
    3939                        KeyEvent.VK_R, Shortcut.SHIFT),
    4040                true, false);
     
    9595            return EmptyTags;
    9696        // 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));
    9898    }
    9999}
Note: See TracChangeset for help on using the changeset viewer.