Ignore:
Timestamp:
2009-11-29T15:42:27+01:00 (15 years ago)
Author:
stoecker
Message:

fixed display issue

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  
    9292            long now = System.currentTimeMillis();
    9393            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());
    9595                last_print = now;
    9696            }
     
    118118            }
    119119        }
    120         System.out.println("p1 elapesd: " + (System.currentTimeMillis()-last));
     120        //System.out.println("p1 elapsed: " + (System.currentTimeMillis()-last));
    121121        last = System.currentTimeMillis();
    122122        }
     
    139139            }
    140140        }
    141         System.out.println("p2 elapesd: " + (System.currentTimeMillis()-last));
     141        //System.out.println("p2 elapsed: " + (System.currentTimeMillis()-last));
    142142        last = System.currentTimeMillis();
    143143        for(Map.Entry<Node, Way> error : map.entrySet())
     
    160160                }
    161161            }
    162             System.out.println("p3 elapesd: " + (System.currentTimeMillis()-last));
     162            //System.out.println("p3 elapsed: " + (System.currentTimeMillis()-last));
    163163            last = System.currentTimeMillis();
    164164            for(Map.Entry<Node, Way> error : map.entrySet())
     
    178178                }
    179179            }
    180             System.out.println("p4 elapesd: " + (System.currentTimeMillis()-last));
     180            //System.out.println("p4 elapsed: " + (System.currentTimeMillis()-last));
    181181            last = System.currentTimeMillis();
    182182            for(Map.Entry<Node, Way> error : map.entrySet())
     
    190190        endnodes = null;
    191191        super.endTest();
    192         System.out.println("p99 elapesd: " + (System.currentTimeMillis()-last));
     192        //System.out.println("p99 elapsed: " + (System.currentTimeMillis()-last));
    193193        last = System.currentTimeMillis();
    194194    }
     
    278278                // one now being asked for...
    279279                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.");
    281281                    // Used the cached result and trim out
    282282                    // the nodes that are not in the smaller
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/util/NameVisitor.java

    r17479 r18848  
    1414import org.openstreetmap.josm.data.osm.Way;
    1515import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
     16import org.openstreetmap.josm.gui.DefaultNameFormatter;
    1617import org.openstreetmap.josm.tools.ImageProvider;
    1718
     
    4344     */
    4445    public void visit(Node n) {
    45         name = n.getName();
     46        name = n.getDisplayName(DefaultNameFormatter.getInstance());
    4647        addId(n);
    4748        icon = ImageProvider.get("data", "node");
     
    5556     */
    5657    public void visit(Way w) {
    57         name = w.getName();
     58        name = w.getDisplayName(DefaultNameFormatter.getInstance());
    5859        addId(w);
    5960        icon = ImageProvider.get("data", "way");
     
    6566     */
    6667    public void visit(Relation e) {
    67         name = e.getName();
     68        name = e.getDisplayName(DefaultNameFormatter.getInstance());
    6869        addId(e);
    6970        icon = ImageProvider.get("data", "relation");
Note: See TracChangeset for help on using the changeset viewer.