Changeset 11303 in josm for trunk/src/org


Ignore:
Timestamp:
2016-11-24T10:36:15+01:00 (8 years ago)
Author:
bastiK
Message:

see #13948 - always listen to dataset events of the current edit layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java

    r11235 r11303  
    3333import org.openstreetmap.josm.data.osm.event.DataChangedEvent;
    3434import org.openstreetmap.josm.data.osm.event.DataSetListener;
     35import org.openstreetmap.josm.data.osm.event.DatasetEventManager;
    3536import org.openstreetmap.josm.data.osm.event.NodeMovedEvent;
    3637import org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent;
     
    105106            }
    106107        }
    107         DataSet ds = Main.getLayerManager().getEditDataSet();
    108         if (ds != null) {
    109             ds.addDataSetListener(this);
    110         }
     108        DatasetEventManager.getInstance().addDatasetListener(this, DatasetEventManager.FireMode.IN_EDT);
    111109    }
    112110
Note: See TracChangeset for help on using the changeset viewer.