Changeset 7684 in josm for trunk/src/org


Ignore:
Timestamp:
2014-10-31T23:37:12+01:00 (5 years ago)
Author:
Don-vip
Message:

show number of relations instead of API version in osm data layer tooltip

File:
1 edited

Legend:

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

    r7575 r7684  
    352352        int nodes = new FilteredCollection<>(data.getNodes(), OsmPrimitive.nonDeletedPredicate).size();
    353353        int ways = new FilteredCollection<>(data.getWays(), OsmPrimitive.nonDeletedPredicate).size();
     354        int rels = new FilteredCollection<>(data.getRelations(), OsmPrimitive.nonDeletedPredicate).size();
    354355
    355356        String tool = trn("{0} node", "{0} nodes", nodes, nodes)+", ";
    356         tool += trn("{0} way", "{0} ways", ways, ways);
    357 
    358         if (data.getVersion() != null) {
    359             tool += ", " + tr("version {0}", data.getVersion());
    360         }
     357        tool += trn("{0} way", "{0} ways", ways, ways)+", ";
     358        tool += trn("{0} relation", "{0} relations", rels, rels);
     359
    361360        File f = getAssociatedFile();
    362361        if (f != null) {
Note: See TracChangeset for help on using the changeset viewer.