Changeset 34571 in osm for applications


Ignore:
Timestamp:
2018-08-18T20:58:22+02:00 (6 years ago)
Author:
donvip
Message:

fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustDialog.java

    r34565 r34571  
    4141import org.openstreetmap.josm.actions.JosmAction;
    4242import org.openstreetmap.josm.data.Bounds;
    43 import org.openstreetmap.josm.data.SelectionChangedListener;
    44 import org.openstreetmap.josm.data.osm.DataSet;
     43import org.openstreetmap.josm.data.osm.DataSelectionListener;
    4544import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
    4645import org.openstreetmap.josm.data.osm.Node;
     
    5049import org.openstreetmap.josm.data.osm.Way;
    5150import org.openstreetmap.josm.data.osm.WaySegment;
     51import org.openstreetmap.josm.data.osm.event.SelectionEventManager;
    5252import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors;
    5353import org.openstreetmap.josm.gui.MainApplication;
     
    6565import org.openstreetmap.josm.tools.Shortcut;
    6666
    67 public class TrustDialog extends ToggleDialog implements SelectionChangedListener, MapViewPaintable {
     67public class TrustDialog extends ToggleDialog implements DataSelectionListener, MapViewPaintable {
    6868
    6969    public static final Color BGCOLOR_NO_SIG = new Color(234, 234, 234);
     
    313313                checkButton, signButton, showButton
    314314        }));
    315         DataSet.addSelectionListener(this);
     315        SelectionEventManager.getInstance().addSelectionListener(this);
    316316    }
    317317
     
    632632
    633633    @Override
    634     public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
    635         this.osmData = newSelection;
     634    public void selectionChanged(SelectionChangeEvent event) {
     635        this.osmData = event.getSelection();
    636636
    637637        if (!isVisible())
Note: See TracChangeset for help on using the changeset viewer.