Changeset 10666 in osm for applications/editors/josm


Ignore:
Timestamp:
2008-09-13T20:07:50+02:00 (16 years ago)
Author:
stoecker
Message:

minor cleanups

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/ErrorTreePanel.java

    r10502 r10666  
    223223                                        // Message node
    224224                                        List<TestError> errors = msgErrors.getValue();
    225                                         String msg = msgErrors.getKey() + " (" + errors.size() + ")";
     225                                        String msg;
     226                                        if(groupNode != null)
     227                                                msg = msgErrors.getKey() + " (" + errors.size() + ")";
     228                                        else
     229                                                msg = msgErrors.getKey() + " - " + bag.getKey() + " (" + errors.size() + ")";
    226230                                        DefaultMutableTreeNode messageNode = new DefaultMutableTreeNode(msg);
    227231                                        if(groupNode != null)
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java

    r10531 r10666  
    352352                                if( values != null && !values.contains(prop.getValue()) && !withErrors.contains(p, "UPV"))
    353353                                {
     354                                        String i = marktr("Key ''{0}'' unknown.");
    354355                                        errors.add( new TestError(this, Severity.OTHER, tr("Unknown property values"),
    355                                         tr(s, key), MessageFormat.format(s, key), INVALID_VALUE, p) );
     356                                        tr(i, key), MessageFormat.format(i, key), INVALID_VALUE, p) );
    356357                                        withErrors.add(p, "UPV");
    357358                                }
Note: See TracChangeset for help on using the changeset viewer.