Changeset 27977 in osm for applications/editors
- Timestamp:
- 2012-03-03T12:38:28+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/editgpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/build.xml
r27038 r27977 22 22 ** and run 23 23 ** > ant publish 24 ** 24 ** 25 25 ** 26 26 --> 27 27 <project name="editgpx" default="dist" basedir="."> 28 28 <property name="commit.message" value="Changed constructor signature of plugin main class"/> 29 <property name="plugin.main.version" value=" 4549"/>29 <property name="plugin.main.version" value="5035"/> 30 30 <property name="josm" location="../../core/dist/josm-custom.jar"/> 31 31 <property name="plugin.dist.dir" value="../../dist"/> -
applications/editors/josm/plugins/editgpx/josm-editgpx.launch
r19683 r27977 9 9 <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JDK 6"/> 10 10 <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.openstreetmap.josm.gui.MainApplication"/> 11 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="editgpx "/>11 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="editgpx_svn"/> 12 12 </launchConfiguration> -
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.