Ignore:
Timestamp:
2009-06-17T09:46:26+02:00 (15 years ago)
Author:
stoecker
Message:

fix build issues

File:
1 edited

Legend:

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

    r13611 r15961  
    2424/**
    2525 * This hook is called at JOSM upload and will check if new nodes and ways provide
    26  * a tag "source=". If not and if auto-sourcing is enabled, it will add 
     26 * a tag "source=". If not and if auto-sourcing is enabled, it will add
    2727 * automatically a tag "source"="Cadastre..." as defined in the plugin preferences.
    2828 */
    2929public class CheckSourceUploadHook implements UploadHook
    3030{
    31         /** Serializable ID */
     31    /** Serializable ID */
    3232    private static final long serialVersionUID = -1;
    3333
     
    4040            Collection<OsmPrimitive> sel = new HashSet<OsmPrimitive>();
    4141            for (OsmPrimitive osm : add) {
    42                 if ((osm instanceof Node || osm instanceof Way) 
     42                if ((osm instanceof Node || osm instanceof Way)
    4343                        && (osm.keys == null || !tagSourceExist(osm))) {
    4444                    sel.add(osm);
     
    5151        return true;
    5252    }
    53    
     53
    5454    /**
    5555     * Check whenever one of the keys of the object is "source"
     
    6565        return false;
    6666    }
    67    
     67
    6868    /**
    69      * Displays a screen with the list of objects which will be tagged with 
     69     * Displays a screen with the list of objects which will be tagged with
    7070     * source="cadastre.." if it is approved.
    7171     * @param sel the list of elements added without a key "source"
    7272     */
    73     private void displaySource(Collection<OsmPrimitive> sel) 
     73    private void displaySource(Collection<OsmPrimitive> sel)
    7474    {
    7575        if (!sel.isEmpty()) {
     
    8686                Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", CadastrePlugin.source));
    8787        }
    88                
    89     }   
     88
     89    }
    9090}
Note: See TracChangeset for help on using the changeset viewer.