Ignore:
Timestamp:
23.06.2009 22:03:37 (3 years ago)
Author:
Gubaer
Message:

new: MultiFetchServerObjectReader using APIs Multi Fetch method
update: now uses Multi Fetch to check for deleted primitives on the server
update: now uses Multi Fetch to update the selected primitives with the state from the server
fixed: cleaned up merging in MergeVisitor
new: conflict resolution dialog; now resolves conflicts due to different visibilities
new: replacement for realEqual() on OsmPrimitive and derived classes; realEqual now @deprecated
fixed: cleaning up OsmReader
fixed: progress indication in OsmApi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r1640 r1690  
    3131 
    3232    public final void setEastNorth(EastNorth eastNorth) { 
    33        this.eastNorth = eastNorth; 
    34        this.coor = Main.proj.eastNorth2latlon(eastNorth); 
     33        this.eastNorth = eastNorth; 
     34        this.coor = Main.proj.eastNorth2latlon(eastNorth); 
    3535    } 
    3636 
     
    8787    } 
    8888 
     89    /** 
     90     * @deprecated 
     91     * @see #hasEqualSemanticAttributes(OsmPrimitive) 
     92     * @see #hasEqualTechnicalAttributes(OsmPrimitive) 
     93     */ 
     94    @Deprecated 
    8995    @Override public boolean realEqual(OsmPrimitive osm, boolean semanticOnly) { 
    9096        if (osm instanceof Node) { 
     
    99105    } 
    100106 
     107    @Override 
     108    public boolean hasEqualSemanticAttributes(OsmPrimitive other) { 
     109        if (other == null || ! (other instanceof Node) ) 
     110            return false; 
     111        if (! super.hasEqualSemanticAttributes(other)) 
     112            return false; 
     113        Node n = (Node)other; 
     114        if (coor == null && n.coor == null) 
     115            return true; 
     116        else if (coor != null && n.coor != null) 
     117            return coor.equals(n.coor); 
     118        else 
     119            return false; 
     120    } 
     121 
    101122    public int compareTo(OsmPrimitive o) { 
    102123        return o instanceof Node ? Long.valueOf(id).compareTo(o.id) : 1; 
    103124    } 
    104125 
     126    @Override 
    105127    public String getName() { 
    106128        String name; 
     
    109131        } else { 
    110132            name = get("name"); 
    111             if (name == null) 
     133            if (name == null) { 
    112134                name = id == 0 ? tr("node") : ""+id; 
     135            } 
    113136            name += " (" + coor.latToString(mCord) + ", " + coor.lonToString(mCord) + ")"; 
    114137        } 
Note: See TracChangeset for help on using the changeset viewer.