Changeset 34505 in osm for applications/editors/josm/plugins/editgpx
- Timestamp:
- 2018-08-18T15:31:40+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/editgpx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/build.xml
r33782 r34505 4 4 <property name="commit.message" value="Changed constructor signature of plugin main class"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 2636"/>6 <property name="plugin.main.version" value="14153"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r33782 r34505 17 17 import javax.swing.ImageIcon; 18 18 19 import org.openstreetmap.josm.Main;20 19 import org.openstreetmap.josm.data.Bounds; 21 20 import org.openstreetmap.josm.data.gpx.GpxData; 22 21 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 23 22 import org.openstreetmap.josm.data.projection.Projection; 23 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 24 24 import org.openstreetmap.josm.gui.MainApplication; 25 25 import org.openstreetmap.josm.gui.MapView; … … 105 105 //don't iterate through dataSet whiling making changes 106 106 synchronized(layerImport.importing) { 107 Projection projection = Main.getProjection();107 Projection projection = ProjectionRegistry.getProjection(); 108 108 for (EditGpxTrack track: data.getTracks()) { 109 109 for (EditGpxTrackSegment segment: track.getSegments()) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r33782 r34505 15 15 import java.util.List; 16 16 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.actions.mapmode.MapMode; 19 18 import org.openstreetmap.josm.data.projection.Projection; 19 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 20 20 import org.openstreetmap.josm.gui.MainApplication; 21 21 import org.openstreetmap.josm.gui.MapFrame; … … 89 89 //go through nodes and mark the ones in the selection rect as deleted 90 90 if (currentEditLayer != null) { 91 Projection projection = Main.getProjection();91 Projection projection = ProjectionRegistry.getProjection(); 92 92 for (EditGpxTrack track: currentEditLayer.data.getTracks()) { 93 93 for (EditGpxTrackSegment segment: track.getSegments()) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java
r33782 r34505 23 23 import javax.swing.JOptionPane; 24 24 25 import org.openstreetmap.josm.Main;26 25 import org.openstreetmap.josm.gui.MainApplication; 27 26 import org.openstreetmap.josm.gui.layer.GpxLayer; … … 87 86 } 88 87 }; 89 final JDialog dlg = optionPane.createDialog(Main .parent, tr("Import path from GPX layer"));88 final JDialog dlg = optionPane.createDialog(MainApplication.getMainFrame(), tr("Import path from GPX layer")); 90 89 dlg.setVisible(true); 91 90 … … 108 107 } else { 109 108 // no gps layer 110 JOptionPane.showMessageDialog(Main .parent,tr("No GPX data layer found."));109 JOptionPane.showMessageDialog(MainApplication.getMainFrame(),tr("No GPX data layer found.")); 111 110 } 112 111 }
Note:
See TracChangeset
for help on using the changeset viewer.