Changeset 21440 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-05-24T22:52:00+02: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/ErrorTreePanel.java
r20828 r21440 221 221 msg = msgErrors.getKey() + " (" + errors.size() + ")"; 222 222 else 223 msg = msgErrors.getKey() + " - " + bag.getKey() + " (" + errors.size() + ")";223 msg = bag.getKey() + " - " + msgErrors.getKey() + " (" + errors.size() + ")"; 224 224 DefaultMutableTreeNode messageNode = new DefaultMutableTreeNode(msg); 225 225 if (groupNode != null) -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java
r20828 r21440 139 139 protected static int INVALID_HTML = 1206; 140 140 protected static int PAINT = 1207; 141 protected static int LONG_VALUE = 1208; 142 protected static int LONG_KEY = 1209; 141 143 /** 1250 and up is used by tagcheck */ 142 144 … … 472 474 String key = prop.getKey(); 473 475 String value = prop.getValue(); 476 if( checkValues && (value!=null && value.length() > 255) && !withErrors.contains(p, "LV")) 477 { 478 errors.add( new TestError(this, Severity.ERROR, tr("Tag value longer than allowed"), 479 tr(s, key), MessageFormat.format(s, key), LONG_VALUE, p) ); 480 withErrors.add(p, "LV"); 481 } 482 if( checkKeys && (value!=null && key.length() > 255) && !withErrors.contains(p, "LK")) 483 { 484 errors.add( new TestError(this, Severity.ERROR, tr("Tag key longer than allowed"), 485 tr(s, key), MessageFormat.format(s, key), LONG_KEY, p) ); 486 withErrors.add(p, "LK"); 487 } 474 488 if( checkValues && (value==null || value.trim().length() == 0) && !withErrors.contains(p, "EV")) 475 489 {
Note:
See TracChangeset
for help on using the changeset viewer.