Package org.openstreetmap.josm.data.validation.util

Examples of org.openstreetmap.josm.data.validation.util.NameVisitor


    @Override
    public String getDescriptionText() {
        String text = tr( "Replace \"{0}\" by \"{1}\" for", key, newKey);
        if (objects.size() == 1) {
            NameVisitor v = new NameVisitor();
            objects.iterator().next().accept(v);
            text += " "+tr(v.className)+" "+v.name;
        } else {
            text += " "+objects.size()+" "+trn("object","objects",objects.size());
        }
View Full Code Here


    public Collection<PseudoCommand> getChildren() {
        if (objects.size() == 1)
            return null;
        List<PseudoCommand> children = new ArrayList<>();

        final NameVisitor v = new NameVisitor();
        for (final OsmPrimitive osm : objects) {
            osm.accept(v);
            children.add(new PseudoCommand() {
                @Override
                public String getDescriptionText() {
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.data.validation.util.NameVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.