Changeset 32018 in osm for applications


Ignore:
Timestamp:
2016-01-23T19:07:19+01:00 (9 years ago)
Author:
donvip
Message:

[josm_utilsplugin2] fix josm12398 - copy tags entry to edit menu (patch by kolesar)

Location:
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2
Files:
1 added
1 edited

Legend:

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

    r30862 r32018  
    1414import org.openstreetmap.josm.plugins.utilsplugin2.actions.AddIntersectionsAction;
    1515import org.openstreetmap.josm.plugins.utilsplugin2.actions.AlignWayNodesAction;
     16import org.openstreetmap.josm.plugins.utilsplugin2.actions.CopyTagsAction;
    1617import org.openstreetmap.josm.plugins.utilsplugin2.actions.ExtractPointAction;
    1718import org.openstreetmap.josm.plugins.utilsplugin2.actions.PasteRelationsAction;
     
    4849public class UtilsPlugin2 extends Plugin {
    4950
    50         private static UtilsPlugin2 instance;
     51    private static UtilsPlugin2 instance;
     52
     53    JMenuItem copyTags;
    5154
    5255    JMenuItem unglueRelation;
     
    8891        instance = this;
    8992
     93        JMenu editMenu = Main.main.menu.editMenu;
    9094        JMenu toolsMenu = Main.main.menu.moreToolsMenu;
    9195        JMenu dataMenu = Main.main.menu.dataMenu;
    9296        JMenu selectionMenu = Main.main.menu.selectionMenu;
     97
     98        copyTags = MainMenu.addAfter(editMenu, new CopyTagsAction(), false, Main.main.menu.copy);
    9399
    94100        addIntersections = MainMenu.add(toolsMenu, new AddIntersectionsAction());
     
    173179
    174180    public static final UtilsPlugin2 getInstance() {
    175         return instance;
     181        return instance;
    176182    }
    177183}
Note: See TracChangeset for help on using the changeset viewer.