monitor.readLock().lock();
try {
if (mapListeners == null) {
return;
}
MapLayerListEvent mapEvent = new MapLayerListEvent(this, element, index, layerEvent);
for (MapLayerListListener mapLayerListListener : mapListeners) {
try {
switch (layerEvent.getReason()) {
case MapLayerEvent.PRE_DISPOSE:
mapLayerListListener.layerPreDispose(mapEvent);