Ignore:
Timestamp:
2017-09-06T02:03:14+02:00 (3 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - see #13036 - remove GUI stuff from Command and DeleteCommand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r12744 r12749  
    5959import org.openstreetmap.gui.jmapviewer.FeatureAdapter;
    6060import org.openstreetmap.josm.Main;
     61import org.openstreetmap.josm.actions.DeleteAction;
    6162import org.openstreetmap.josm.actions.JosmAction;
    6263import org.openstreetmap.josm.actions.OpenFileAction;
     
    7071import org.openstreetmap.josm.actions.mapmode.DrawAction;
    7172import org.openstreetmap.josm.actions.search.SearchAction;
     73import org.openstreetmap.josm.command.DeleteCommand;
    7274import org.openstreetmap.josm.data.Bounds;
    7375import org.openstreetmap.josm.data.UndoRedoHandler;
     
    853855        OAuthAccessTokenHolder.getInstance().init(Main.pref, CredentialsManager.getInstance());
    854856
     857        setupCallbacks();
     858
    855859        final SplashScreen splash = GuiHelper.runInEDTAndWaitAndReturn(SplashScreen::new);
    856860        final SplashScreen.SplashProgressMonitor monitor = splash.getProgressMonitor();
     
    959963            }
    960964        }
     965    }
     966
     967    static void setupCallbacks() {
     968        DeleteCommand.setDeletionCallback(DeleteAction::checkAndConfirmOutlyingDelete);
    961969    }
    962970
Note: See TracChangeset for help on using the changeset viewer.