Changeset 34307 in osm for applications/editors


Ignore:
Timestamp:
2018-06-17T11:39:40+02:00 (6 years ago)
Author:
donvip
Message:

fix deprecation warnings

Location:
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/ImageryXmlBoundsPlugin.java

    r33560 r34307  
    33
    44import org.openstreetmap.josm.actions.ExtensionFileFilter;
    5 import org.openstreetmap.josm.data.osm.DataSet;
     5import org.openstreetmap.josm.data.osm.event.SelectionEventManager;
    66import org.openstreetmap.josm.gui.MainApplication;
    77import org.openstreetmap.josm.gui.MapFrame;
     
    5959        // Initialize the selection action
    6060        ShowBoundsSelectionAction selectionAction = new ShowBoundsSelectionAction();
    61         DataSet.addSelectionListener(selectionAction);
     61        SelectionEventManager.getInstance().addSelectionListener(selectionAction);
    6262        MainApplication.getToolbar().register(selectionAction);
    6363        // Allow JOSM to download *.imagery.xml files
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/ShowBoundsSelectionAction.java

    r30735 r34307  
    22package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    33
    4 import java.util.Collection;
    5 
    6 import org.openstreetmap.josm.data.SelectionChangedListener;
    7 import org.openstreetmap.josm.data.osm.OsmPrimitive;
     4import org.openstreetmap.josm.data.osm.DataSelectionListener;
    85
    96/**
     
    129 *
    1310 */
    14 public class ShowBoundsSelectionAction extends ShowBoundsAction implements SelectionChangedListener {
     11public class ShowBoundsSelectionAction extends ShowBoundsAction implements DataSelectionListener {
    1512
    1613    /**
     
    2219
    2320    @Override
    24     public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
    25         updateOsmPrimitives(newSelection);
     21    public void selectionChanged(SelectionChangeEvent event) {
     22        updateOsmPrimitives(event.getSelection());
    2623    }
    2724}
Note: See TracChangeset for help on using the changeset viewer.