Пример #1
0
 /**
  * Decorates the name of primitive with its id, if the preference <tt>osm-primitives.showid</tt>
  * is set. Shows unique id if osm-primitives.showid.new-primitives is set
  *
  * @param name the name without the id
  * @param primitive the primitive
  */
 protected void decorateNameWithId(StringBuilder name, IPrimitive primitive) {
   if (Main.pref.getBoolean("osm-primitives.showid")) {
     if (Main.pref.getBoolean("osm-primitives.showid.new-primitives")) {
       name.append(tr(" [id: {0}]", primitive.getUniqueId()));
     } else {
       name.append(tr(" [id: {0}]", primitive.getId()));
     }
   }
 }