Ignore:
Timestamp:
2018-08-11T23:33:58+02:00 (6 years 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/relation/AddSelectionToRelations.java

    r13957 r14134  
    1313import org.openstreetmap.josm.command.Command;
    1414import org.openstreetmap.josm.command.SequenceCommand;
     15import org.openstreetmap.josm.data.UndoRedoHandler;
    1516import org.openstreetmap.josm.data.osm.DataSelectionListener;
    1617import org.openstreetmap.josm.data.osm.IPrimitive;
     
    4849        }
    4950        if (!cmds.isEmpty()) {
    50             MainApplication.undoRedo.add(new SequenceCommand(tr("Add selection to relation"), cmds));
     51            UndoRedoHandler.getInstance().add(new SequenceCommand(tr("Add selection to relation"), cmds));
    5152            new Notification(
    5253                    "<html>"+
Note: See TracChangeset for help on using the changeset viewer.