Changeset 2468 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-11-17T17:33:31+01:00 (15 years ago)
Author:
stoecker
Message:

remove ViewID, fix typo, i18n update

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r2414 r2468  
    5858            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be empty"));
    5959        if (data.isEmpty())
    60             throw new IllegalArgumentException(tr("At least one object to delete requird, got empty collection"));
     60            throw new IllegalArgumentException(tr("At least one object to delete required, got empty collection"));
    6161        this.toDelete = data;
    6262    }
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java

    r2466 r2468  
    132132    public void visitAll(DataSet data, boolean virtual, Bounds bounds) {
    133133        this.ds = data;
    134         //boolean profiler = Main.pref.getboolean("simplepaint.profiler",false);
     134        //boolean profiler = Main.pref.getBoolean("simplepaint.profiler",false);
    135135        //long profilerStart = java.lang.System.currentTimeMillis();
    136136        //long profilerLast = profilerStart;
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r2450 r2468  
    6767
    6868        return Main.proj.latlon2eastNorth(new LatLon(lat, lon));
    69     }
    70 
    71     /**
    72      * Return a ID which is unique as long as viewport dimensions are the same
    73      */
    74     public Integer getViewID()
    75     {
    76         String x = center.east() + "_" + center.north() + "_" + scale + "_" +
    77         getWidth() + "_" + getHeight() + "_" + getProjection().toString();
    78         java.util.zip.CRC32 id = new java.util.zip.CRC32();
    79         id.update(x.getBytes());
    80         return new Long(id.getValue()).intValue();
    8169    }
    8270
Note: See TracChangeset for help on using the changeset viewer.