Ignore:
Timestamp:
2012-01-08T17:20:43+01:00 (13 years ago)
Author:
akks
Message:

'Utilsplugin2: shortcut confilct removed, fix NPE in OpenCustomURL config, added osm.mapki.com'

Location:
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UtilsPluginPreferences.java

    r26696 r27417  
    5858        // FIXME: get rid of hardcoded URLS
    5959        List<String> items = (List<String>) Main.pref.getCollection("utilsplugin2.urlHistory");
    60         if (items==null) {
     60        String addr = Main.pref.get("utilsplugin2.customurl", defaultURL);
     61        table=new JTable(new DefaultTableModel(null,new String[]{"Title","URL"}));
     62        if (addr==null || items==null || items.isEmpty()) {
    6163            items = resetURLList();
    62             fillRows(items);
    63         }
    64         String addr = Main.pref.get("utilsplugin2.customurl", defaultURL);
     64        }
    6565        //System.out.println("pref:"+addr);
    6666       
     
    8686        });
    8787       
    88         table=new JTable(new DefaultTableModel(null,new String[]{"Title","URL"}));
    8988        fillRows(items);
    9089       
     
    169168            items.add("AMDMi3 Russian streets");
    170169            items.add("http://addresses.amdmi3.ru/?zoom=11&lat={#lat}&lon={#lon}&layers=B00");
     170            items.add("Mapki - More  History with CT");
     171            items.add("http://osm.mapki.com/history/{#type}.php?id={#id}");
    171172            items.add("Element history [demo, =Ctrl-Shift-H]");
    172173            items.add("http://www.openstreetmap.org/browse/{#type}/{#id}/history");
     
    174175            items.add("http://www.openstreetmap.org/browse/{#type}/{#id}");
    175176        Main.pref.putCollection("utilsplugin2.urlHistory",items);
     177        Main.pref.put("utilsplugin2.customurl",items.get(4));
    176178        return items;
    177179    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/SplitOnIntersectionsAction.java

    r26295 r27417  
    2727        super(TITLE, "dumbutils/splitonintersections", tr("Split adjacent ways on T-intersections"),
    2828                Shortcut.registerShortcut("tools:splitonintersections", tr("Tool: {0}", TITLE), KeyEvent.VK_P,
    29                 Shortcut.GROUP_EDIT, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK), true);
     29                Shortcut.GROUP_MENU, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK| KeyEvent.SHIFT_DOWN_MASK), true);
    3030    }
    3131
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/UnselectNodesAction.java

    r27410 r27417  
    2424                tr("Removes all nodes from selection"),
    2525                Shortcut.registerShortcut("tools:unsnodes", tr("Tool: {0}","Unselect nodes"),
    26                 KeyEvent.VK_U, Shortcut.GROUP_EDIT, KeyEvent.ALT_DOWN_MASK), true);
     26                KeyEvent.VK_U, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
    2727        putValue("help", ht("/Action/UnselectNodes"));
    2828    }
Note: See TracChangeset for help on using the changeset viewer.