Changeset 27977 in osm for applications/editors/josm/plugins/editgpx/src/org/openstreetmap
- Timestamp:
- 2012-03-03T12:38:28+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r23650 r27977 145 145 super(tr("Convert to GPX layer"), ImageProvider.get("converttogpx")); 146 146 } 147 @Override 147 148 public void actionPerformed(ActionEvent e) { 149 if (Main.map.mapMode instanceof EditGpxMode) { 150 if (!Main.map.selectSelectTool(false)) { 151 Main.map.selectZoomTool(false); // Select tool might not be support of active layer, zoom is always supported 152 } 153 } 148 154 Main.main.addLayer(new GpxLayer(toGpxData(false), tr("Converted from: {0}", getName()))); 149 155 Main.main.removeLayer(EditGpxLayer.this); 150 if(Main.map.mapMode instanceof EditGpxMode)151 Main.map.selectSelectTool(false);152 156 } 153 157 } … … 158 162 super(tr("Convert to GPX layer with anonymised time"), ImageProvider.get("converttogpx")); 159 163 } 164 @Override 160 165 public void actionPerformed(ActionEvent e) { 166 if (Main.map.mapMode instanceof EditGpxMode) { 167 if (!Main.map.selectSelectTool(false)) { 168 Main.map.selectZoomTool(false); // Select tool might not be support of active layer, zoom is always supported 169 } 170 } 161 171 Main.main.addLayer(new GpxLayer(toGpxData(true), tr("Converted from: {0}", getName()))); 162 172 Main.main.removeLayer(EditGpxLayer.this); 163 if(Main.map.mapMode instanceof EditGpxMode)164 Main.map.selectSelectTool(false);165 173 } 166 174 }
Note:
See TracChangeset
for help on using the changeset viewer.