Changeset 2973 in josm for trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
- Timestamp:
- 13.02.2010 17:05:37 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r2893 r2973 73 73 /** 74 74 * Decorates the name of primitive with its id, if the preference 75 * <tt>osm-primitives.showid</tt> is set. 75 * <tt>osm-primitives.showid</tt> is set. Shows unique id if osm-primitives.showid.new-primitives is set 76 76 * 77 77 * @param name the name without the id … … 81 81 protected String decorateNameWithId(String name, OsmPrimitive primitive) { 82 82 if (Main.pref.getBoolean("osm-primitives.showid")) 83 return name + tr(" [id: {0}]", primitive.getId()); 83 if (Main.pref.getBoolean("osm-primitives.showid.new-primitives")) 84 return name + tr(" [id: {0}]", primitive.getUniqueId()); 85 else 86 return name + tr(" [id: {0}]", primitive.getId()); 84 87 else 85 88 return name;
Note: See TracChangeset
for help on using the changeset viewer.
