Changeset 10975 in josm for trunk/src/org


Ignore:
Timestamp:
2016-09-08T00:59:51+02:00 (8 years ago)
Author:
Don-vip
Message:

remove deprecated stuff - gsoc-core

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

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

    r10972 r10975  
    166166
    167167    /**
    168      * The MapFrame. Use {@link Main#setMapFrame} to set or clear it.
     168     * The MapFrame.
    169169     * <p>
    170170     * There should be no need to access this to access any map data. Use {@link #layerManager} instead.
  • trunk/src/org/openstreetmap/josm/gui/MainPanel.java

    r10611 r10975  
    7676        // Notify map frame listeners, mostly plugins.
    7777        for (MapFrameListener listener : mapFrameListeners) {
    78             MapView.fireDeprecatedListenerOnAdd = true;
    7978            listener.mapFrameInitialized(old, map);
    80             MapView.fireDeprecatedListenerOnAdd = false;
    8179        }
    8280        if (map == null && Main.currentProgressMonitor != null) {
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r10972 r10975  
    5656import org.openstreetmap.josm.gui.layer.LayerManager;
    5757import org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent;
    58 import org.openstreetmap.josm.gui.layer.LayerManager.LayerChangeListener;
    5958import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent;
    6059import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent;
     
    186185        }
    187186    }
    188 
    189     /**
    190      * Temporary. To be removed as soon as the {@link LayerChangeListener}s are removed.
    191      * <p>
    192      * Some plugins add their listeners in {@link Main#setMapFrame(MapFrame)}. This method is now called just after the first layer was added to
    193      * the layer manager. So that listener would not receive the addition of the first layer. As long as this field is set, we fake an add call
    194      * to that listener when it is added to immitate the old behaviour. You should not access it from anywhere else.
    195      */
    196     public static boolean fireDeprecatedListenerOnAdd;
    197187
    198188    public boolean viewportFollowing;
Note: See TracChangeset for help on using the changeset viewer.