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

    r14128 r14134  
    241241     * The commands undo/redo handler.
    242242     * @since 12641
    243      */
    244     public static volatile UndoRedoHandler undoRedo;
     243     * @deprecated Use {@link UndoRedoHandler#getInstance}
     244     */
     245    @Deprecated
     246    public static final UndoRedoHandler undoRedo = UndoRedoHandler.getInstance();
    245247
    246248    private static final LayerChangeListener undoRedoCleaner = new LayerChangeListener() {
     
    360362    public MainApplication(MainFrame mainFrame) {
    361363        this.mainFrame = mainFrame;
    362         undoRedo = super.undoRedo;
    363364        getLayerManager().addLayerChangeListener(undoRedoCleaner);
    364365        ProjectionRegistry.setboundsProvider(mainBoundsProvider);
Note: See TracChangeset for help on using the changeset viewer.