Ignore:
Timestamp:
2013-07-24T21:45:09+02:00 (11 years ago)
Author:
akks
Message:

[josm_plugins]: move more plugin items to new menus, set minimum JOSM to 6082, add Netbeans projects

Location:
applications/editors/josm/plugins/utilsplugin2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/build.xml

    r29742 r29771  
    55    <property name="commit.message" value="[josm_utilsplugin2]: pasting tags is in core long ago. Please update you ancient JOSM :)"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="4980"/>
     7    <property name="plugin.main.version" value="6082"/>
    88
    9     <property name="plugin.author" value="Kalle Lampila, Upliner, and others"/>
     9    <property name="plugin.author" value="Kalle Lampila, Upliner, Zverik, akks, joshdoe and others"/>
    1010    <property name="plugin.class" value="org.openstreetmap.josm.plugins.utilsplugin2.UtilsPlugin2"/>
    1111    <property name="plugin.description" value="Several utilities that make your life easier."/>
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/UtilsPlugin2.java

    r29769 r29771  
    7171    public UtilsPlugin2(PluginInformation info) {
    7272        super(info);
    73         boolean oldMenu = org.openstreetmap.josm.data.Version.getInstance().getVersion() < 6082;
    74         JMenu toolsMenu = oldMenu
    75                 ?  Main.main.menu.addMenu(marktr("More tools"), KeyEvent.VK_Q, 4, "help")
    76                 :  Main.main.menu.moreToolsMenu;
    77        
    78         JMenu dataMenu = oldMenu ? toolsMenu: Main.main.menu.dataMenu;
     73        JMenu toolsMenu = Main.main.menu.moreToolsMenu;
     74        JMenu dataMenu = Main.main.menu.dataMenu;
     75        JMenu selectionMenu = Main.main.menu.selectionMenu;
    7976               
    8077        addIntersections = MainMenu.add(toolsMenu, new AddIntersectionsAction());
     
    9491        drawArc = MainMenu.add(toolsMenu, new CurveAction());
    9592
    96         JMenu selectionMenu;
    97         if (oldMenu) {
    98             selectionMenu = Main.main.menu.addMenu(marktr("Selection"), KeyEvent.VK_N, 4, "help");
    99         } else {
    100             selectionMenu = Main.main.menu.selectionMenu;
    101             selectionMenu.addSeparator();
    102         }
    103        
     93        selectionMenu.addSeparator();
     94           
    10495        selectWayNodes = MainMenu.add(selectionMenu, new SelectWayNodesAction());
    10596        adjNodes = MainMenu.add(selectionMenu, new AdjacentNodesAction());
Note: See TracChangeset for help on using the changeset viewer.