Changeset 34523 in osm for applications/editors/josm/plugins
- Timestamp:
- 2018-08-18T18:13:25+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/infomode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/infomode/build.xml
r33720 r34523 5 5 <property name="commit.message" value="InfoMode : for shortcurt parser"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2630"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java
r33722 r34523 23 23 import javax.swing.PopupFactory; 24 24 25 import org.openstreetmap.josm.Main;26 25 import org.openstreetmap.josm.actions.mapmode.MapMode; 27 26 import org.openstreetmap.josm.data.Bounds; … … 30 29 import org.openstreetmap.josm.data.gpx.GpxTrackSegment; 31 30 import org.openstreetmap.josm.data.gpx.WayPoint; 31 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 32 32 import org.openstreetmap.josm.gui.MainApplication; 33 33 import org.openstreetmap.josm.gui.MapView; … … 70 70 /*if (!(Main.main.getActiveLayer() instanceof GpxLayer)) { 71 71 boolean answer = ConditionalOptionPaneUtil.showConfirmationDialog( 72 "scan_all_layers", Main .parent,72 "scan_all_layers", MainApplication.getMainFrame(), 73 73 tr("Please select GPX layer to view only its trackpoint info. Do you want to scan all GPX layers?"), 74 74 tr("Select layer to scan"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_OPTION ); … … 247 247 oldWp = null; // next segment will have new previous point 248 248 for (WayPoint S : seg.getWayPoints()) { 249 d = S.getEastNorth( Main.getProjection()).distance(pos);249 d = S.getEastNorth(ProjectionRegistry.getProjection()).distance(pos); 250 250 251 251 if (d < minDist && d < maxD) { … … 271 271 Point oldP = null, curP = null; // next segment will have new previous point 272 272 for (WayPoint S : seg.getWayPoints()) { 273 curP = mv.getPoint(S.getEastNorth( Main.getProjection()));273 curP = mv.getPoint(S.getEastNorth(ProjectionRegistry.getProjection())); 274 274 if (oldP != null) g.drawLine(oldP.x, oldP.y, curP.x, curP.y); 275 275 oldP = curP;
Note:
See TracChangeset
for help on using the changeset viewer.