Changeset 2025 in josm for trunk/src/org/openstreetmap/josm/actions/ApiPreconditionChecker.java
- Timestamp:
- 2009-09-02T21:17:52+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ApiPreconditionChecker.java
r2017 r2025 1 // License: GPL. For details, see LICENSE file.2 1 package org.openstreetmap.josm.actions; 3 2 … … 71 70 for (Entry<String,String> e : osmPrimitive.entrySet()) { 72 71 if(e.getValue().length() > 255) { 73 if (osmPrimitive. deleted) {72 if (osmPrimitive.isDeleted()) { 74 73 // if OsmPrimitive is going to be deleted we automatically shorten the 75 74 // value … … 77 76 tr("Warning: automatically truncating value of tag ''{0}'' on deleted primitive {1}", 78 77 e.getKey(), 79 Long.toString(osmPrimitive. id)78 Long.toString(osmPrimitive.getId()) 80 79 ) 81 80 ); … … 85 84 JOptionPane.showMessageDialog(Main.parent, 86 85 tr("Length of value for tag ''{0}'' on primitive {1} exceeds the max. allowed length {2}. Values length is {3}.", 87 e.getKey(), Long.toString(osmPrimitive. id), 255, e.getValue().length()86 e.getKey(), Long.toString(osmPrimitive.getId()), 255, e.getValue().length() 88 87 ), 89 88 tr("Precondition Violation"), … … 103 102 tr("{0} nodes in way {1} exceed the max. allowed number of nodes {2}", 104 103 ((Way)osmPrimitive).getNodesCount(), 105 Long.toString(osmPrimitive. id),104 Long.toString(osmPrimitive.getId()), 106 105 maxNodes 107 106 ),
Note:
See TracChangeset
for help on using the changeset viewer.