Ignore:
Timestamp:
2009-09-08T23:14:16+02:00 (15 years ago)
Author:
guggis
Message:

Updating to JOSM r2082

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java

    r17365 r17528  
    1616import org.openstreetmap.josm.actions.UploadAction.UploadHook;
    1717import org.openstreetmap.josm.command.ChangePropertyCommand;
     18import org.openstreetmap.josm.data.APIDataSet;
    1819import org.openstreetmap.josm.data.osm.Node;
    1920import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    3536     * Add the tag "source" if it doesn't exist for all new Nodes and Ways before uploading
    3637     */
    37     public boolean checkUpload(Collection<OsmPrimitive> add, Collection<OsmPrimitive> update, Collection<OsmPrimitive> delete)
     38    public boolean checkUpload(APIDataSet apiDataSet)
    3839    {
    39         if (CadastrePlugin.autoSourcing && CadastrePlugin.pluginUsed && !add.isEmpty()) {
     40        if (CadastrePlugin.autoSourcing && CadastrePlugin.pluginUsed && !apiDataSet.getPrimitivesToAdd().isEmpty()) {
    4041            Collection<OsmPrimitive> sel = new HashSet<OsmPrimitive>();
    41             for (OsmPrimitive osm : add) {
     42            for (OsmPrimitive osm : apiDataSet.getPrimitivesToAdd()) {
    4243                if ((osm instanceof Node || osm instanceof Way)
    4344                        && (osm.getKeys() == null || !tagSourceExist(osm))) {
Note: See TracChangeset for help on using the changeset viewer.