Ignore:
Timestamp:
2017-08-27T17:07:54+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - move ConflictCollection from OsmDataLayer to DataSet. Simplifies some code where a data set is enough, and a layer is not needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r12671 r12672  
    351351
    352352    /**
    353      * the collection of conflicts detected in this layer
    354      */
    355     private final ConflictCollection conflicts;
    356 
    357     /**
    358353     * a texture for non-downloaded area
    359354     */
     
    407402        this.data = data;
    408403        this.setAssociatedFile(associatedFile);
    409         conflicts = new ConflictCollection();
    410404        data.addDataSetListener(new DataSetListenerAdapter(this));
    411405        data.addDataSetListener(MultipolygonCache.getInstance());
     
    567561        int numNewConflicts = 0;
    568562        for (Conflict<?> c : visitor.getConflicts()) {
    569             if (!conflicts.hasConflict(c)) {
     563            if (!data.getConflicts().hasConflict(c)) {
    570564                numNewConflicts++;
    571                 conflicts.add(c);
     565                data.getConflicts().add(c);
    572566            }
    573567        }
     
    924918     */
    925919    public ConflictCollection getConflicts() {
    926         return conflicts;
     920        return data.getConflicts();
    927921    }
    928922
Note: See TracChangeset for help on using the changeset viewer.