Changeset 32514 in osm for applications/editors/josm
- Timestamp:
- 2016-07-02T00:14:23+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/WaypointSearchPlugin.java
r30777 r32514 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import org.openstreetmap.josm.Main; 5 6 import org.openstreetmap.josm.gui.MapFrame; 6 import org.openstreetmap.josm.gui.MapView; 7 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 8 import org.openstreetmap.josm.gui.layer.Layer; 7 import org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent; 8 import org.openstreetmap.josm.gui.layer.LayerManager.LayerChangeListener; 9 import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent; 10 import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent; 9 11 import org.openstreetmap.josm.plugins.Plugin; 10 12 import org.openstreetmap.josm.plugins.PluginInformation; … … 26 28 public WaypointSearchPlugin(PluginInformation info) { 27 29 super(info); 28 Ma pView.addLayerChangeListener(this);30 Main.getLayerManager().addLayerChangeListener(this); 29 31 } 30 32 … … 42 44 43 45 @Override 44 public void activeLayerChange(Layer oldLayer, Layer newLayer) {46 public void layerOrderChanged(LayerOrderChangeEvent e) { 45 47 // Do nothing 46 48 } 47 49 48 50 @Override 49 public void layerAdded(Layer newLayer) {51 public void layerAdded(LayerAddEvent e) { 50 52 // update search 51 53 if (waypointDialog != null && Engine.gpxLayersExist()) { … … 55 57 56 58 @Override 57 public void layerRemov ed(Layer oldLayer) {59 public void layerRemoving(LayerRemoveEvent e) { 58 60 if (waypointDialog != null && !Engine.gpxLayersExist()) { 59 61 waypointDialog.updateSearchResults();
Note:
See TracChangeset
for help on using the changeset viewer.