Changeset 13939 in josm for trunk/src/org
- Timestamp:
- 2018-06-17T14:10:35+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/util/NameVisitor.java
r12809 r13939 41 41 public Icon icon; 42 42 43 private static final Icon nodeIcon = ImageProvider.get("data", "node"); 44 private static final Icon wayIcon = ImageProvider.get("data", "way"); 45 private static final Icon relIcon = ImageProvider.get("data", "relation"); 46 43 47 /** 44 48 * If the node has a name-key or id-key, this is displayed. If not, (lat,lon) is displayed. … … 47 51 public void visit(Node n) { 48 52 name = n.getDisplayName(DefaultNameFormatter.getInstance()); 49 icon = ImageProvider.get("data", "node");53 icon = nodeIcon; 50 54 className = "node"; 51 55 classNamePlural = trn("node", "nodes", 2); … … 59 63 public void visit(Way w) { 60 64 name = w.getDisplayName(DefaultNameFormatter.getInstance()); 61 icon = ImageProvider.get("data", "way");65 icon = wayIcon; 62 66 className = "way"; 63 67 classNamePlural = trn("way", "ways", 2); … … 67 71 public void visit(Relation e) { 68 72 name = e.getDisplayName(DefaultNameFormatter.getInstance()); 69 icon = ImageProvider.get("data", "relation");73 icon = relIcon; 70 74 className = "relation"; 71 75 classNamePlural = trn("relation", "relations", 2);
Note:
See TracChangeset
for help on using the changeset viewer.