Changeset 32470 in osm for applications/editors/josm/plugins/livegps
- Timestamp:
- 2016-06-30T20:14:05+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/livegps
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/build.xml
r31926 r32470 2 2 <project name="livegps" default="dist" basedir="."> 3 3 <property name="commit.message" value="Changed the constructor signature of the plugin main class"/> 4 <property name="plugin.main.version" value=" 7001"/>4 <property name="plugin.main.version" value="10279"/> 5 5 6 6 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsPlugin.java
r30737 r32470 17 17 import org.openstreetmap.josm.gui.MainMenu; 18 18 import org.openstreetmap.josm.gui.MapFrame; 19 import org.openstreetmap.josm.gui.MapView;20 import org.openstreetmap.josm.gui.MapView.LayerChangeListener;21 19 import org.openstreetmap.josm.gui.layer.Layer; 20 import org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent; 21 import org.openstreetmap.josm.gui.layer.LayerManager.LayerChangeListener; 22 import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent; 23 import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent; 22 24 import org.openstreetmap.josm.plugins.Plugin; 23 25 import org.openstreetmap.josm.plugins.PluginInformation; … … 92 94 93 95 @Override 94 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 95 } 96 97 @Override 98 public void layerAdded(Layer newLayer) { 99 } 100 101 @Override 102 public void layerRemoved(Layer oldLayer) { 96 public void layerOrderChanged(LayerOrderChangeEvent e) { 97 } 98 99 @Override 100 public void layerAdded(LayerAddEvent e) { 101 } 102 103 @Override 104 public void layerRemoving(LayerRemoveEvent e) { 105 Layer oldLayer = e.getRemovedLayer(); 103 106 if (oldLayer != lgpslayer) 104 return;107 return; 105 108 106 109 enableTracking(false); 107 110 lgpscapture.setSelected(false); 108 Ma pView.removeLayerChangeListener(this);111 Main.getLayerManager().removeLayerChangeListener(this); 109 112 lgpslayer = null; 110 113 } … … 169 172 if (lgpslayer == null) { 170 173 lgpslayer = new LiveGpsLayer(data); 171 Main. main.addLayer(lgpslayer);172 Ma pView.addLayerChangeListener(this);174 Main.getLayerManager().addLayer(lgpslayer); 175 Main.getLayerManager().addLayerChangeListener(this); 173 176 lgpslayer.setAutoCenter(isAutoCenter()); 174 177 }
Note:
See TracChangeset
for help on using the changeset viewer.