Changeset 34571 in osm for applications
- Timestamp:
- 2018-08-18T20:58:22+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustDialog.java
r34565 r34571 41 41 import org.openstreetmap.josm.actions.JosmAction; 42 42 import org.openstreetmap.josm.data.Bounds; 43 import org.openstreetmap.josm.data.SelectionChangedListener; 44 import org.openstreetmap.josm.data.osm.DataSet; 43 import org.openstreetmap.josm.data.osm.DataSelectionListener; 45 44 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; 46 45 import org.openstreetmap.josm.data.osm.Node; … … 50 49 import org.openstreetmap.josm.data.osm.Way; 51 50 import org.openstreetmap.josm.data.osm.WaySegment; 51 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 52 52 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors; 53 53 import org.openstreetmap.josm.gui.MainApplication; … … 65 65 import org.openstreetmap.josm.tools.Shortcut; 66 66 67 public class TrustDialog extends ToggleDialog implements SelectionChangedListener, MapViewPaintable {67 public class TrustDialog extends ToggleDialog implements DataSelectionListener, MapViewPaintable { 68 68 69 69 public static final Color BGCOLOR_NO_SIG = new Color(234, 234, 234); … … 313 313 checkButton, signButton, showButton 314 314 })); 315 DataSet.addSelectionListener(this);315 SelectionEventManager.getInstance().addSelectionListener(this); 316 316 } 317 317 … … 632 632 633 633 @Override 634 public void selectionChanged( Collection<? extends OsmPrimitive> newSelection) {635 this.osmData = newSelection;634 public void selectionChanged(SelectionChangeEvent event) { 635 this.osmData = event.getSelection(); 636 636 637 637 if (!isVisible())
Note:
See TracChangeset
for help on using the changeset viewer.