Index: /trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java =================================================================== --- /trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java (revision 10997) +++ /trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java (revision 10998) @@ -35,5 +35,5 @@ * Notifies this listener that a layer has been added. *
- * Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread. + * Listeners are called in the EDT thread. * @param e The new added layer event */ @@ -41,7 +41,8 @@ /** - * Notifies this listener that a layer is about to be removed. + * Notifies this listener that a alayer was just removed. *
- * Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
+ * Listeners are called in the EDT thread after the layer was removed.
+ * Use {@link LayerRemoveEvent#scheduleRemoval(Collection)} to remove more layers.
* @param e The layer to be removed (as event)
*/
@@ -223,7 +224,6 @@
protected Collection