Ignore:
Timestamp:
2009-09-02T21:17:52+02:00 (15 years ago)
Author:
Gubaer
Message:

new: improved dialog for uploading/saving modified layers on exit
new: improved dialog for uploading/saving modified layers if layers are deleted
new: new progress monitor which can delegate rendering to any Swing component
more setters/getters for properties in OSM data classes (fields are @deprecated); started to update references in the code base

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.
    21package org.openstreetmap.josm.actions;
    32
     
    7170            for (Entry<String,String> e : osmPrimitive.entrySet()) {
    7271                if(e.getValue().length() > 255) {
    73                     if (osmPrimitive.deleted) {
     72                    if (osmPrimitive.isDeleted()) {
    7473                        // if OsmPrimitive is going to be deleted we automatically shorten the
    7574                        // value
     
    7776                                tr("Warning: automatically truncating value of tag ''{0}'' on deleted primitive {1}",
    7877                                        e.getKey(),
    79                                         Long.toString(osmPrimitive.id)
     78                                        Long.toString(osmPrimitive.getId())
    8079                                )
    8180                        );
     
    8584                    JOptionPane.showMessageDialog(Main.parent,
    8685                            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()
    8887                            ),
    8988                            tr("Precondition Violation"),
     
    103102                        tr("{0} nodes in way {1} exceed the max. allowed number of nodes {2}",
    104103                                ((Way)osmPrimitive).getNodesCount(),
    105                                 Long.toString(osmPrimitive.id),
     104                                Long.toString(osmPrimitive.getId()),
    106105                                maxNodes
    107106                        ),
Note: See TracChangeset for help on using the changeset viewer.