Changeset 10975 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-09-08T00:59:51+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r10972 r10975 166 166 167 167 /** 168 * The MapFrame. Use {@link Main#setMapFrame} to set or clear it.168 * The MapFrame. 169 169 * <p> 170 170 * 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 76 76 // Notify map frame listeners, mostly plugins. 77 77 for (MapFrameListener listener : mapFrameListeners) { 78 MapView.fireDeprecatedListenerOnAdd = true;79 78 listener.mapFrameInitialized(old, map); 80 MapView.fireDeprecatedListenerOnAdd = false;81 79 } 82 80 if (map == null && Main.currentProgressMonitor != null) { -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10972 r10975 56 56 import org.openstreetmap.josm.gui.layer.LayerManager; 57 57 import org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent; 58 import org.openstreetmap.josm.gui.layer.LayerManager.LayerChangeListener;59 58 import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent; 60 59 import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent; … … 186 185 } 187 186 } 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 to193 * 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 call194 * 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;197 187 198 188 public boolean viewportFollowing;
Note:
See TracChangeset
for help on using the changeset viewer.