Changeset 34566 in osm for applications/editors/josm/plugins/turnlanes
- Timestamp:
- 2018-08-18T20:35:38+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/turnlanes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnlanes/build.xml
r34282 r34566 5 5 <property name="commit.message" value="fix toolbar warnings - toolbar still does not work"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 3922"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <!-- -
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui/GuiContainer.java
r33085 r34566 17 17 import java.util.Map; 18 18 19 import org.openstreetmap.josm.Main;20 19 import org.openstreetmap.josm.data.coor.EastNorth; 21 20 import org.openstreetmap.josm.data.coor.LatLon; 21 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 22 22 import org.openstreetmap.josm.plugins.turnlanes.model.Junction; 23 23 import org.openstreetmap.josm.plugins.turnlanes.model.Lane; … … 53 53 final Point2D origin = avgOrigin(locs(mc.getPrimaryJunctions())); 54 54 55 final LatLon originCoor = Main.getProjection().eastNorth2latlon(new EastNorth(origin.getX(), origin.getY()));56 final LatLon relCoor = Main.getProjection().eastNorth2latlon(55 final LatLon originCoor = ProjectionRegistry.getProjection().eastNorth2latlon(new EastNorth(origin.getX(), origin.getY())); 56 final LatLon relCoor = ProjectionRegistry.getProjection().eastNorth2latlon( 57 57 new EastNorth(origin.getX() + 1, origin.getY() + 1)); 58 58 -
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui/GuiUtil.java
r33085 r34566 12 12 import java.util.List; 13 13 14 import org.openstreetmap.josm.Main;15 14 import org.openstreetmap.josm.data.coor.EastNorth; 16 15 import org.openstreetmap.josm.data.osm.Node; 16 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 17 17 import org.openstreetmap.josm.plugins.turnlanes.model.Junction; 18 18 … … 134 134 135 135 public static Point2D loc(Node node) { 136 final EastNorth loc = Main.getProjection().latlon2eastNorth(node.getCoor());136 final EastNorth loc = ProjectionRegistry.getProjection().latlon2eastNorth(node.getCoor()); 137 137 return new Point2D.Double(loc.getX(), -loc.getY()); 138 138 } -
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Lane.java
r33085 r34566 10 10 import java.util.Set; 11 11 12 import org.openstreetmap.josm. Main;12 import org.openstreetmap.josm.data.UndoRedoHandler; 13 13 import org.openstreetmap.josm.data.osm.Node; 14 14 import org.openstreetmap.josm.data.osm.Relation; … … 221 221 cmd.backup(r).put(key, Turn.join(lanes)); 222 222 223 Main.main.undoRedo.add(cmd);223 UndoRedoHandler.getInstance().add(cmd); 224 224 } 225 225 … … 241 241 getOutgoingRoadEnd().removeLane(cmd, this); 242 242 243 Main.main.undoRedo.add(cmd);243 UndoRedoHandler.getInstance().add(cmd); 244 244 } 245 245 -
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Road.java
r33085 r34566 11 11 import java.util.Set; 12 12 13 import org.openstreetmap.josm. Main;13 import org.openstreetmap.josm.data.UndoRedoHandler; 14 14 import org.openstreetmap.josm.data.osm.AbstractPrimitive; 15 15 import org.openstreetmap.josm.data.osm.Node; … … 141 141 } 142 142 143 Main.main.undoRedo.add(cmd);143 UndoRedoHandler.getInstance().add(cmd); 144 144 } 145 145 … … 184 184 } 185 185 186 Main.main.undoRedo.add(cmd);186 UndoRedoHandler.getInstance().add(cmd); 187 187 } 188 188 -
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Turn.java
r33085 r34566 12 12 import java.util.Set; 13 13 14 import org.openstreetmap.josm. Main;14 import org.openstreetmap.josm.data.UndoRedoHandler; 15 15 import org.openstreetmap.josm.data.osm.Node; 16 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 196 196 remove(cmd); 197 197 198 Main.main.undoRedo.add(cmd);198 UndoRedoHandler.getInstance().add(cmd); 199 199 } 200 200
Note:
See TracChangeset
for help on using the changeset viewer.