Changeset 2615 in josm for trunk/src/org


Ignore:
Timestamp:
2009-12-12T06:19:06+01:00 (15 years ago)
Author:
mjulius
Message:

store incomplete flag in PrimitiveData

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

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

    r2604 r2615  
    11411141        setModified(data.isModified());
    11421142        setVisible(data.isVisible());
     1143        setIncomplete(data.isIncomplete());
    11431144    }
    11441145
     
    11581159        data.setModified(isModified());
    11591160        data.setVisible(isVisible());
     1161        data.setIncomplete(isIncomplete());
    11601162        data.setChangesetId(changesetId);
    11611163    }
  • trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java

    r2604 r2615  
    3636        this.version = data.version;
    3737        this.timestamp = data.timestamp;
     38        this.incomplete = data.incomplete;
    3839    }
    3940
     
    4243    private boolean visible = true;
    4344    private boolean deleted;
     45    private boolean incomplete;
    4446    private long id;
    4547    private User user;
     
    102104        return keys;
    103105    }
     106    public boolean isIncomplete() {
     107        return incomplete;
     108    }
     109    public void setIncomplete(boolean incomplete) {
     110        this.incomplete = incomplete;
     111    }
    104112
    105113    public void clearOsmId() {
     
    122130        if (deleted) {
    123131            builder.append("D");
     132        }
     133        if (incomplete) {
     134            builder.append("I");
    124135        }
    125136
Note: See TracChangeset for help on using the changeset viewer.