Changeset 2893 in josm for trunk/src


Ignore:
Timestamp:
2010-01-25T22:40:27+01:00 (10 years ago)
Author:
bastiK
Message:

display admin_level in the relation list (and everywhere else a string representation of a relation is used)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java

    r2885 r2893  
    166166            if (name == null) {
    167167                name = tr("relation");
     168            }
     169            String admin_level = relation.get("admin_level");
     170            if (admin_level != null) {
     171                name += "["+admin_level+"]";
    168172            }
    169173
Note: See TracChangeset for help on using the changeset viewer.