Changeset 33346 in osm


Ignore:
Timestamp:
2017-05-30T23:34:57+02:00 (8 years ago)
Author:
giackserva
Message:

using non deprecated constructor

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  
    5959        if (oldFrame == null && newFrame != null) {
    6060            repeatLastFixMenu.setEnabled(false);
    61             Main.map.addMapMode(new IconToggleButton(new AddStopPositionAction(Main.map)));
     61            Main.map.addMapMode(new IconToggleButton(new AddStopPositionAction()));
    6262        } else if (oldFrame != null && newFrame == null) {
    6363            repeatLastFixMenu.setEnabled(false);
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/AddStopPositionAction.java

    r33191 r33346  
    2020import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2121import org.openstreetmap.josm.data.osm.WaySegment;
    22 import org.openstreetmap.josm.gui.MapFrame;
    2322import org.openstreetmap.josm.tools.ImageProvider;
    2423import org.openstreetmap.josm.tools.Shortcut;
     
    3736    private final Cursor cursorJoinWay;
    3837
    39         public AddStopPositionAction(MapFrame mapFrame) {
     38        public AddStopPositionAction() {
    4039                super(tr("Add stop position"),
    4140                                "bus",
     
    4443                        tr("Mode: {0}", tr("Add stop position")),
    4544                        KeyEvent.VK_T, Shortcut.DIRECT),
    46                                 mapFrame,
    4745                                getCursor());
    4846
Note: See TracChangeset for help on using the changeset viewer.