Changeset 18848 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2009-11-29T15:42:27+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UnconnectedWays.java
r18813 r18848 92 92 long now = System.currentTimeMillis(); 93 93 if (now - last_print > 200) { 94 System.err.println("processing segment nr: " + nr + " of " + ways.size());94 //System.err.println("processing segment nr: " + nr + " of " + ways.size()); 95 95 last_print = now; 96 96 } … … 118 118 } 119 119 } 120 System.out.println("p1 elapesd: " + (System.currentTimeMillis()-last));120 //System.out.println("p1 elapsed: " + (System.currentTimeMillis()-last)); 121 121 last = System.currentTimeMillis(); 122 122 } … … 139 139 } 140 140 } 141 System.out.println("p2 elapesd: " + (System.currentTimeMillis()-last));141 //System.out.println("p2 elapsed: " + (System.currentTimeMillis()-last)); 142 142 last = System.currentTimeMillis(); 143 143 for(Map.Entry<Node, Way> error : map.entrySet()) … … 160 160 } 161 161 } 162 System.out.println("p3 elapesd: " + (System.currentTimeMillis()-last));162 //System.out.println("p3 elapsed: " + (System.currentTimeMillis()-last)); 163 163 last = System.currentTimeMillis(); 164 164 for(Map.Entry<Node, Way> error : map.entrySet()) … … 178 178 } 179 179 } 180 System.out.println("p4 elapesd: " + (System.currentTimeMillis()-last));180 //System.out.println("p4 elapsed: " + (System.currentTimeMillis()-last)); 181 181 last = System.currentTimeMillis(); 182 182 for(Map.Entry<Node, Way> error : map.entrySet()) … … 190 190 endnodes = null; 191 191 super.endTest(); 192 System.out.println("p99 elapesd: " + (System.currentTimeMillis()-last));192 //System.out.println("p99 elapsed: " + (System.currentTimeMillis()-last)); 193 193 last = System.currentTimeMillis(); 194 194 } … … 278 278 // one now being asked for... 279 279 if (nearbyNodeCacheDist > dist) { 280 System.out.println("had to trim MyWaySegment nearby node cache.");280 //System.out.println("had to trim MyWaySegment nearby node cache."); 281 281 // Used the cached result and trim out 282 282 // the nodes that are not in the smaller -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/util/NameVisitor.java
r17479 r18848 14 14 import org.openstreetmap.josm.data.osm.Way; 15 15 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 16 import org.openstreetmap.josm.gui.DefaultNameFormatter; 16 17 import org.openstreetmap.josm.tools.ImageProvider; 17 18 … … 43 44 */ 44 45 public void visit(Node n) { 45 name = n.get Name();46 name = n.getDisplayName(DefaultNameFormatter.getInstance()); 46 47 addId(n); 47 48 icon = ImageProvider.get("data", "node"); … … 55 56 */ 56 57 public void visit(Way w) { 57 name = w.get Name();58 name = w.getDisplayName(DefaultNameFormatter.getInstance()); 58 59 addId(w); 59 60 icon = ImageProvider.get("data", "way"); … … 65 66 */ 66 67 public void visit(Relation e) { 67 name = e.get Name();68 name = e.getDisplayName(DefaultNameFormatter.getInstance()); 68 69 addId(e); 69 70 icon = ImageProvider.get("data", "relation");
Note:
See TracChangeset
for help on using the changeset viewer.