Changeset 14134 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
- Timestamp:
- 2018-08-11T23:33:58+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r13964 r14134 29 29 import org.openstreetmap.josm.command.SequenceCommand; 30 30 import org.openstreetmap.josm.data.Bounds; 31 import org.openstreetmap.josm.data.UndoRedoHandler; 31 32 import org.openstreetmap.josm.data.coor.EastNorth; 32 33 import org.openstreetmap.josm.data.osm.DataSelectionListener; … … 478 479 virtualSegments.size(), virtualSegments.size()); 479 480 480 MainApplication.undoRedo.add(new SequenceCommand(text, virtualCmds));481 UndoRedoHandler.getInstance().add(new SequenceCommand(text, virtualCmds)); 481 482 482 483 } else if (alt && !ctrl && candidateNode != null) { … … 495 496 final Command deleteCmd = DeleteCommand.delete(Collections.singleton(targetWay), true); 496 497 if (deleteCmd != null) { 497 MainApplication.undoRedo.add(deleteCmd);498 UndoRedoHandler.getInstance().add(deleteCmd); 498 499 } 499 500 } else { 500 MainApplication.undoRedo.add(new ChangeCommand(targetWay, newWay));501 UndoRedoHandler.getInstance().add(new ChangeCommand(targetWay, newWay)); 501 502 } 502 503 } else if (candidateNode.isTagged()) { … … 507 508 final Command deleteCmd = DeleteCommand.delete(Collections.singleton(candidateNode), true); 508 509 if (deleteCmd != null) { 509 MainApplication.undoRedo.add(deleteCmd);510 UndoRedoHandler.getInstance().add(deleteCmd); 510 511 } 511 512 } … … 517 518 EastNorth cursorEN = mv.getEastNorth(mousePos.x, mousePos.y); 518 519 519 MainApplication.undoRedo.add(new MoveCommand(candidateNode, cursorEN.east() - nodeEN.east(), cursorEN.north() - nodeEN.north()));520 UndoRedoHandler.getInstance().add(new MoveCommand(candidateNode, cursorEN.east() - nodeEN.east(), cursorEN.north() - nodeEN.north())); 520 521 } 521 522 }
Note:
See TracChangeset
for help on using the changeset viewer.
