Changeset 33346 in osm
- Timestamp:
- 2017-05-30T23:34:57+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/PTAssistantPlugin.java
r33191 r33346 59 59 if (oldFrame == null && newFrame != null) { 60 60 repeatLastFixMenu.setEnabled(false); 61 Main.map.addMapMode(new IconToggleButton(new AddStopPositionAction( Main.map)));61 Main.map.addMapMode(new IconToggleButton(new AddStopPositionAction())); 62 62 } else if (oldFrame != null && newFrame == null) { 63 63 repeatLastFixMenu.setEnabled(false); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/AddStopPositionAction.java
r33191 r33346 20 20 import org.openstreetmap.josm.data.osm.OsmPrimitive; 21 21 import org.openstreetmap.josm.data.osm.WaySegment; 22 import org.openstreetmap.josm.gui.MapFrame;23 22 import org.openstreetmap.josm.tools.ImageProvider; 24 23 import org.openstreetmap.josm.tools.Shortcut; … … 37 36 private final Cursor cursorJoinWay; 38 37 39 public AddStopPositionAction( MapFrame mapFrame) {38 public AddStopPositionAction() { 40 39 super(tr("Add stop position"), 41 40 "bus", … … 44 43 tr("Mode: {0}", tr("Add stop position")), 45 44 KeyEvent.VK_T, Shortcut.DIRECT), 46 mapFrame,47 45 getCursor()); 48 46
Note:
See TracChangeset
for help on using the changeset viewer.