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/io/remotecontrol/AddTagsDialog.java

    r13259 r14134  
    3131import org.openstreetmap.josm.Main;
    3232import org.openstreetmap.josm.command.ChangePropertyCommand;
     33import org.openstreetmap.josm.data.UndoRedoHandler;
    3334import org.openstreetmap.josm.data.osm.OsmPrimitive;
    3435import org.openstreetmap.josm.gui.ExtendedDialog;
     
    259260                    String key = (String) tm.getValueAt(i, 1);
    260261                    Object value = tm.getValueAt(i, 2);
    261                     MainApplication.undoRedo.add(new ChangePropertyCommand(sel,
     262                    UndoRedoHandler.getInstance().add(new ChangePropertyCommand(sel,
    262263                            key, value instanceof String ? (String) value : ""));
    263264                }
     
    313314            if (MainApplication.getLayerManager().getEditDataSet() != null) {
    314315                for (String[] row : keyValue) {
    315                     MainApplication.undoRedo.add(new ChangePropertyCommand(primitives, row[0], row[1]));
     316                    UndoRedoHandler.getInstance().add(new ChangePropertyCommand(primitives, row[0], row[1]));
    316317                }
    317318            }
Note: See TracChangeset for help on using the changeset viewer.