Changeset 34307 in osm for applications/editors
- Timestamp:
- 2018-06-17T11:39:40+02:00 (6 years ago)
- 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 3 3 4 4 import org.openstreetmap.josm.actions.ExtensionFileFilter; 5 import org.openstreetmap.josm.data.osm. DataSet;5 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 6 6 import org.openstreetmap.josm.gui.MainApplication; 7 7 import org.openstreetmap.josm.gui.MapFrame; … … 59 59 // Initialize the selection action 60 60 ShowBoundsSelectionAction selectionAction = new ShowBoundsSelectionAction(); 61 DataSet.addSelectionListener(selectionAction);61 SelectionEventManager.getInstance().addSelectionListener(selectionAction); 62 62 MainApplication.getToolbar().register(selectionAction); 63 63 // 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 2 2 package org.openstreetmap.josm.plugins.imageryxmlbounds.actions; 3 3 4 import java.util.Collection; 5 6 import org.openstreetmap.josm.data.SelectionChangedListener; 7 import org.openstreetmap.josm.data.osm.OsmPrimitive; 4 import org.openstreetmap.josm.data.osm.DataSelectionListener; 8 5 9 6 /** … … 12 9 * 13 10 */ 14 public class ShowBoundsSelectionAction extends ShowBoundsAction implements SelectionChangedListener {11 public class ShowBoundsSelectionAction extends ShowBoundsAction implements DataSelectionListener { 15 12 16 13 /** … … 22 19 23 20 @Override 24 public void selectionChanged( Collection<? extends OsmPrimitive> newSelection) {25 updateOsmPrimitives( newSelection);21 public void selectionChanged(SelectionChangeEvent event) { 22 updateOsmPrimitives(event.getSelection()); 26 23 } 27 24 }
Note:
See TracChangeset
for help on using the changeset viewer.