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/mapmode/DrawAction.java

    r14011 r14134  
    3939import org.openstreetmap.josm.command.SequenceCommand;
    4040import org.openstreetmap.josm.data.Bounds;
     41import org.openstreetmap.josm.data.UndoRedoHandler;
    4142import org.openstreetmap.josm.data.coor.EastNorth;
    4243import org.openstreetmap.josm.data.osm.DataSelectionListener;
     
    667668        Command c = new SequenceCommand(title, cmds);
    668669
    669         MainApplication.undoRedo.add(c);
     670        UndoRedoHandler.getInstance().add(c);
    670671        if (!wayIsFinished) {
    671672            lastUsedNode = n;
     
    13821383        @Override
    13831384        public void actionPerformed(ActionEvent e) {
    1384             MainApplication.undoRedo.undo();
    1385             Command lastCmd = MainApplication.undoRedo.getLastCommand();
     1385            UndoRedoHandler.getInstance().undo();
     1386            Command lastCmd = UndoRedoHandler.getInstance().getLastCommand();
    13861387            if (lastCmd == null) return;
    13871388            Node n = null;
Note: See TracChangeset for help on using the changeset viewer.