Changeset 19056 in osm for applications/editors/josm/plugins/livegps/src
- Timestamp:
- 2009-12-12T18:13:43+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsPlugin.java
r19011 r19056 20 20 import org.openstreetmap.josm.gui.MainMenu; 21 21 import org.openstreetmap.josm.gui.MapFrame; 22 import org.openstreetmap.josm.gui.MapView; 23 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 22 24 import org.openstreetmap.josm.gui.layer.Layer; 23 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener;24 25 import org.openstreetmap.josm.plugins.Plugin; 25 26 import org.openstreetmap.josm.tools.Shortcut; … … 109 110 lgpscapture.setSelected(false); 110 111 removePropertyChangeListener(lgpslayer); 111 Layer.listeners.remove(this);112 MapView.removeLayerChangeListener(this); 112 113 lgpslayer = null; 113 114 } … … 190 191 lgpslayer = new LiveGpsLayer(data); 191 192 Main.main.addLayer(lgpslayer); 192 Layer.listeners.add(this);193 MapView.addLayerChangeListener(this); 193 194 lgpslayer.setAutoCenter(isAutoCenter()); 194 195 }
Note:
See TracChangeset
for help on using the changeset viewer.