Changeset 3633 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-10-24T08:59:51+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r3560 r3633 64 64 65 65 protected String buildText() { 66 StringBu ffer s = new StringBuffer();66 StringBuilder s = new StringBuilder(); 67 67 for (Node n : new DatasetCollection<Node>(primitives, OsmPrimitive.nodePredicate)) { 68 68 s.append("Node id="+n.getUniqueId()); … … 77 77 continue; 78 78 } 79 s.append(String.format(" lat=%s; lon=%s; ", Double.toString(n.getCoor().lat()), Double.toString(n.getCoor().lon()))); 79 s.append(String.format(" lat=%s lon=%s (projected: x=%s, y=%s); ", 80 Double.toString(n.getCoor().lat()), Double.toString(n.getCoor().lon()), 81 Double.toString(n.getEastNorth().east()), Double.toString(n.getEastNorth().north()))); 80 82 addCommon(s, n); 81 83 addAttributes(s, n); … … 134 136 } 135 137 136 protected void addCommon(StringBu ffer s, OsmPrimitive o) {138 protected void addCommon(StringBuilder s, OsmPrimitive o) { 137 139 s.append(String.format("Data set: %X; User: [%s]; ChangeSet id: %H; Timestamp: %s, Version: %d", 138 140 o.getDataSet().hashCode(), … … 167 169 } 168 170 169 protected void addAttributes(StringBu ffer s, OsmPrimitive o) {171 protected void addAttributes(StringBuilder s, OsmPrimitive o) { 170 172 if (o.hasKeys()) { 171 173 s.append(" tags:\n"); … … 176 178 } 177 179 178 protected void addWayReferrer(StringBu ffer s, Node n) {180 protected void addWayReferrer(StringBuilder s, Node n) { 179 181 // add way referrer 180 182 List<OsmPrimitive> refs = n.getReferrers(); … … 188 190 } 189 191 190 protected void addRelationReferrer(StringBu ffer s, OsmPrimitive o) {192 protected void addRelationReferrer(StringBuilder s, OsmPrimitive o) { 191 193 List<OsmPrimitive> refs = o.getReferrers(); 192 194 DatasetCollection<Relation> relRefs = new DatasetCollection<Relation>(refs, OsmPrimitive.relationPredicate); … … 216 218 List<String> names = user.getNames(); 217 219 218 StringBu ffer us = new StringBuffer();220 StringBuilder us = new StringBuilder(); 219 221 220 222 us.append("id:"+user.getId());
Note:
See TracChangeset
for help on using the changeset viewer.