Ignore:
Timestamp:
2009-09-06T23:07:33+02:00 (15 years ago)
Author:
Gubaer
Message:

new: rewrite of CombineWay action
new: conflict resolution dialog for CombineWay, including conflicts for different relation memberships
cleanup: cleanup in OsmReader, reduces memory footprint and reduces parsing time
cleanup: made most of the public fields in OsmPrimitive @deprecated, added accessors and changed the code
cleanup: replaced usages of @deprecated constructors for ExtendedDialog
fixed #3208: Combine ways brokes relation order

WARNING: this changeset touches a lot of code all over the code base. "latest" might become slightly unstable in the next days. Also experience incompatibility issues with plugins in the next few days.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r2061 r2070  
    233233        try {
    234234            ret = sendRequest("PUT", OsmPrimitiveType.from(osm).getAPIName()+"/create", toXml(osm, true),monitor);
    235             osm.id = Long.parseLong(ret.trim());
    236             osm.version = 1;
     235            osm.setOsmId(Long.parseLong(ret.trim()), 1);
    237236        } catch(NumberFormatException e){
    238237            throw new OsmTransferException(tr("unexpected format of id replied by the server, got ''{0}''", ret));
     
    258257            try {
    259258                ret = sendRequest("PUT", OsmPrimitiveType.from(osm).getAPIName()+"/" + osm.getId(), toXml(osm, true), monitor);
    260                 osm.version = Integer.parseInt(ret.trim());
     259                osm.setOsmId(osm.getId(), Integer.parseInt(ret.trim()));
    261260            } catch(NumberFormatException e) {
    262261                throw new OsmTransferException(tr("unexpected format of new version of modified primitive ''{0}'', got ''{1}''", osm.getId(), ret));
     
    341340                    return;
    342341                }
    343                 changeset.id = this.changeset.getId();
    344                 this.changeset.cloneFrom(changeset);
     342                this.changeset.setKeys(changeset.getKeys());
    345343                progressMonitor.setCustomText(tr("Updating changeset {0}...", changeset.getId()));
    346344                sendRequest(
     
    473471     */
    474472    private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor) throws OsmTransferException {
    475 
    476473        StringBuffer responseBody = new StringBuffer();
    477474
Note: See TracChangeset for help on using the changeset viewer.