Changeset 11334 in josm for trunk/src


Ignore:
Timestamp:
2016-11-28T10:49:40+01:00 (3 years ago)
Author:
simon04
Message:

see #13717 - ConvertToDataLayerAction: use GpxConstants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerAction.java

    r11333 r11334  
    107107            for (Marker marker : layer.data) {
    108108                final Node node = new Node(marker.getCoor());
    109                 final Collection<String> mapping = Main.pref.getCollection("gpx.to-osm-mapping",
    110                         Arrays.asList("name", "name", "desc", "description", "cmt", "note", "src", "source", "sym", "gpxicon"));
     109                final Collection<String> mapping = Main.pref.getCollection("gpx.to-osm-mapping", Arrays.asList(
     110                        GpxConstants.GPX_NAME, "name",
     111                        GpxConstants.GPX_DESC, "description",
     112                        GpxConstants.GPX_CMT, "note",
     113                        GpxConstants.GPX_SRC, "source",
     114                        GpxConstants.PT_SYM, "gpxicon"));
    111115                if (mapping.size() % 2 == 0) {
    112116                    final Iterator<String> it = mapping.iterator();
Note: See TracChangeset for help on using the changeset viewer.