Ignore:
Timestamp:
2018-08-11T23:33:58+02:00 (4 months ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main*.undoRedo - make UndoRedoHandler a singleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java

    r13434 r14134  
    1515import org.openstreetmap.josm.command.SelectCommand;
    1616import org.openstreetmap.josm.command.SequenceCommand;
     17import org.openstreetmap.josm.data.UndoRedoHandler;
    1718import org.openstreetmap.josm.data.osm.DataSet;
    1819import org.openstreetmap.josm.data.osm.Node;
     
    114115                newFollower.addNode(newPoint);
    115116            }
    116             MainApplication.undoRedo.add(new SequenceCommand(tr("Follow line"),
     117            UndoRedoHandler.getInstance().add(new SequenceCommand(tr("Follow line"),
    117118                    new ChangeCommand(ds, follower, newFollower),
    118119                    new SelectCommand(ds, newFollower.isClosed() // see #10028 - unselect last node when closing a way
Note: See TracChangeset for help on using the changeset viewer.