- Timestamp:
- 2016-09-13T15:07:08+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java
r10997 r10998 35 35 * Notifies this listener that a layer has been added. 36 36 * <p> 37 * Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.37 * Listeners are called in the EDT thread. 38 38 * @param e The new added layer event 39 39 */ … … 41 41 42 42 /** 43 * Notifies this listener that a layer is about to beremoved.43 * Notifies this listener that a alayer was just removed. 44 44 * <p> 45 * Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread. 45 * Listeners are called in the EDT thread after the layer was removed. 46 * Use {@link LayerRemoveEvent#scheduleRemoval(Collection)} to remove more layers. 46 47 * @param e The layer to be removed (as event) 47 48 */ … … 223 224 224 225 protected Collection<Layer> realRemoveSingleLayer(Layer layerToRemove) { 225 Collection<Layer> newToRemove = fireLayerRemoving(layerToRemove);226 226 layers.remove(layerToRemove); 227 return newToRemove;227 return fireLayerRemoving(layerToRemove); 228 228 } 229 229 … … 386 386 /** 387 387 * Fire the layer remove event 388 * @param layer The layer t o remove388 * @param layer The layer that was removed 389 389 * @return A list of layers that should be removed afterwards. 390 390 */
Note:
See TracChangeset
for help on using the changeset viewer.