Changeset 12099 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-05-10T23:01:59+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r12030 r12099 41 41 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 42 42 import org.openstreetmap.josm.data.ProjectionBounds; 43 import org.openstreetmap.josm.data.SelectionChangedListener;44 43 import org.openstreetmap.josm.data.ViewportData; 45 44 import org.openstreetmap.josm.data.coor.EastNorth; 46 45 import org.openstreetmap.josm.data.imagery.ImageryInfo; 46 import org.openstreetmap.josm.data.osm.DataSelectionListener; 47 47 import org.openstreetmap.josm.data.osm.DataSet; 48 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 48 49 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors; 49 50 import org.openstreetmap.josm.data.osm.visitor.paint.Rendering; … … 269 270 270 271 // listens to selection changes to redraw the map 271 DataSet.addSelectionListener(repaintSelectionChangedListener);272 SelectionEventManager.getInstance().addSelectionListenerForEdt(repaintSelectionChangedListener); 272 273 273 274 //store the last mouse action … … 742 743 } 743 744 744 private final transient SelectionChangedListener repaintSelectionChangedListener = newSelection-> repaint();745 private final transient DataSelectionListener repaintSelectionChangedListener = event -> repaint(); 745 746 746 747 /** … … 751 752 layerManager.removeActiveLayerChangeListener(this); 752 753 Main.pref.removePreferenceChangeListener(this); 753 DataSet.removeSelectionListener(repaintSelectionChangedListener);754 SelectionEventManager.getInstance().removeSelectionListener(repaintSelectionChangedListener); 754 755 MultipolygonCache.getInstance().clear(); 755 756 if (mapMover != null) {
Note:
See TracChangeset
for help on using the changeset viewer.