Changeset 19052 in osm for applications/editors/josm/plugins/editgpx/src
- Timestamp:
- 2009-12-12T18:00:37+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxPlugin.java
r14245 r19052 14 14 import org.openstreetmap.josm.gui.IconToggleButton; 15 15 import org.openstreetmap.josm.gui.MapFrame; 16 import org.openstreetmap.josm.gui.MapView; 17 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 16 18 import org.openstreetmap.josm.gui.layer.Layer; 17 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener;18 19 import org.openstreetmap.josm.plugins.Plugin; 19 20 … … 85 86 eGpxLayer = new EditGpxLayer(tr("EditGpx"), dataSet); 86 87 Main.main.addLayer(eGpxLayer); 87 Layer.listeners.add(new LayerChangeListener(){88 MapView.addLayerChangeListener(new LayerChangeListener(){ 88 89 89 90 public void activeLayerChange(final Layer oldLayer, final Layer newLayer) { … … 99 100 eGpxLayer = null; 100 101 //dataSet = new DataSet(); 101 102 MapView.removeLayerChangeListener(this); 102 103 } 103 104 }
Note:
See TracChangeset
for help on using the changeset viewer.