Changeset 12330 in josm for trunk/src/org
- Timestamp:
- 2017-06-07T22:13:15+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r12316 r12330 38 38 import org.openstreetmap.josm.command.SequenceCommand; 39 39 import org.openstreetmap.josm.data.Bounds; 40 import org.openstreetmap.josm.data.SelectionChangedListener;41 40 import org.openstreetmap.josm.data.coor.EastNorth; 41 import org.openstreetmap.josm.data.osm.DataSelectionListener; 42 42 import org.openstreetmap.josm.data.osm.DataSet; 43 43 import org.openstreetmap.josm.data.osm.Node; … … 45 45 import org.openstreetmap.josm.data.osm.Way; 46 46 import org.openstreetmap.josm.data.osm.WaySegment; 47 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 47 48 import org.openstreetmap.josm.data.osm.visitor.paint.ArrowPaintHelper; 48 49 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors; … … 72 73 * Mapmode to add nodes, create and extend ways. 73 74 */ 74 public class DrawAction extends MapMode implements MapViewPaintable, SelectionChangedListener, KeyPressReleaseListener, ModifierListener {75 public class DrawAction extends MapMode implements MapViewPaintable, DataSelectionListener, KeyPressReleaseListener, ModifierListener { 75 76 76 77 /** … … 275 276 Main.map.mapView.addMouseMotionListener(this); 276 277 Main.map.mapView.addTemporaryLayer(this); 277 DataSet.addSelectionListener(this);278 SelectionEventManager.getInstance().addSelectionListenerForEdt(this); 278 279 279 280 Main.map.keyDetector.addKeyListener(this); … … 288 289 Main.map.mapView.removeMouseMotionListener(this); 289 290 Main.map.mapView.removeTemporaryLayer(this); 290 DataSet.removeSelectionListener(this);291 SelectionEventManager.getInstance().removeSelectionListener(this); 291 292 Main.unregisterActionShortcut(backspaceAction, backspaceShortcut); 292 293 snapHelper.unsetFixedMode(); … … 339 340 */ 340 341 @Override 341 public void selectionChanged( Collection<? extends OsmPrimitive> newSelection) {342 public void selectionChanged(SelectionChangeEvent event) { 342 343 if (!Main.map.mapView.isActiveLayerDrawable()) 343 344 return;
Note:
See TracChangeset
for help on using the changeset viewer.