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/gui/dialogs/ValidatorDialog.java

    r13940 r14134  
    3535import org.openstreetmap.josm.actions.relation.EditRelationAction;
    3636import org.openstreetmap.josm.command.Command;
     37import org.openstreetmap.josm.data.UndoRedoHandler;
    3738import org.openstreetmap.josm.data.osm.DataSelectionListener;
    3839import org.openstreetmap.josm.data.osm.DataSet;
     
    560561                final Command fixCommand = error.getFix();
    561562                if (fixCommand != null) {
    562                     SwingUtilities.invokeAndWait(() -> MainApplication.undoRedo.addNoRedraw(fixCommand));
     563                    SwingUtilities.invokeAndWait(() -> UndoRedoHandler.getInstance().addNoRedraw(fixCommand));
    563564                }
    564565                // It is wanted to ignore an error if it said fixable, even if fixCommand was null
     
    591592                monitor.subTask(tr("Updating map ..."));
    592593                SwingUtilities.invokeAndWait(() -> {
    593                     MainApplication.undoRedo.afterAdd(null);
     594                    UndoRedoHandler.getInstance().afterAdd(null);
    594595                    invalidateValidatorLayers();
    595596                    tree.resetErrors();
Note: See TracChangeset for help on using the changeset viewer.