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/PurgeAction.java

    r13564 r14134  
    2929import org.openstreetmap.josm.Main;
    3030import org.openstreetmap.josm.command.PurgeCommand;
     31import org.openstreetmap.josm.data.UndoRedoHandler;
    3132import org.openstreetmap.josm.data.osm.DataSet;
    3233import org.openstreetmap.josm.data.osm.IPrimitive;
    3334import org.openstreetmap.josm.data.osm.OsmPrimitive;
    3435import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;
    35 import org.openstreetmap.josm.gui.MainApplication;
    3636import org.openstreetmap.josm.gui.PrimitiveRenderer;
    3737import org.openstreetmap.josm.gui.help.HelpUtil;
     
    104104        }
    105105
    106         MainApplication.undoRedo.add(cmd);
     106        UndoRedoHandler.getInstance().add(cmd);
    107107        if (clearUndoRedo) {
    108             MainApplication.undoRedo.clean();
     108            UndoRedoHandler.getInstance().clean();
    109109            getLayerManager().getEditDataSet().clearSelectionHistory();
    110110        }
Note: See TracChangeset for help on using the changeset viewer.