Changeset 27417 in osm


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

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

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

Legend:

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

    r27410 r27417  
    3030<project name="utilsplugin2" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="Utilsplugin2: customzing shortcut problem solved"/>
     32    <property name="commit.message" value="Utilsplugin2: shortcut confilct removed, fix NPE in OpenCustomURL config, added osm.mapki.com"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3434    <property name="plugin.main.version" value="4549"/>
  • applications/editors/josm/plugins/utilsplugin2/nbproject/project.xml

    r26603 r27417  
    1212            <folders>
    1313                <source-folder>
     14                    <label>utilsplugin2</label>
     15                    <location>.</location>
     16                    <encoding>UTF-8</encoding>
     17                </source-folder>
     18                <source-folder>
    1419                    <label>src</label>
    1520                    <type>java</type>
     
    1722                    <encoding>UTF-8</encoding>
    1823                </source-folder>
    19                 <source-folder>
    20                     <label>utilsplugin2</label>
    21                     <location>.</location>
    22                     <encoding>UTF-8</encoding>
    23                 </source-folder>
     24                <build-file>
     25                    <location>../../dist/utilsplugin2.jar</location>
     26                </build-file>
    2427            </folders>
    2528            <ide-actions>
     
    6568                </context-menu>
    6669            </view>
     70            <subprojects/>
    6771        </general-data>
    6872        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/3">
  • 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.