Revision a5d6e4c0
Added by Niels Hoffmann almost 13 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/AbstractCdmFormElement.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.forms; |
5 | 5 |
|
6 |
import java.util.ConcurrentModificationException; |
|
6 | 7 |
import java.util.HashSet; |
7 | 8 |
import java.util.List; |
8 | 9 |
import java.util.Set; |
... | ... | |
13 | 14 |
import org.eclipse.swt.graphics.Color; |
14 | 15 |
import org.eclipse.swt.widgets.Composite; |
15 | 16 |
import org.eclipse.swt.widgets.Control; |
16 |
import org.eclipse.swt.widgets.Event; |
|
17 | 17 |
import org.eclipse.ui.forms.widgets.Section; |
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
... | ... | |
234 | 234 |
/** {@inheritDoc} */ |
235 | 235 |
public void firePropertyChangeEvent(CdmPropertyChangeEvent event) { |
236 | 236 |
Assert.isNotNull(propertyChangeListeners, "Property change listeners are not present"); |
237 |
|
|
238 |
for(Object listener : propertyChangeListeners){ |
|
239 |
((IPropertyChangeListener)listener).propertyChange(event); |
|
237 |
|
|
238 |
try{ |
|
239 |
for(Object listener : propertyChangeListeners){ |
|
240 |
((IPropertyChangeListener)listener).propertyChange(event); |
|
241 |
} |
|
242 |
}catch(ConcurrentModificationException e){ |
|
243 |
// There are two cases that produce a CME. |
|
244 |
// Described here: http://dev.e-taxonomy.eu/trac/ticket/2363#comment:2 |
|
245 |
// and here: http://dev.e-taxonomy.eu/trac/ticket/2438 |
|
246 |
// Ignoring the CME because nothing bad is happening |
|
247 |
StoreUtil.warn(getClass(), "ConcurrentModificationException. Can be ignored."); |
|
240 | 248 |
} |
241 | 249 |
} |
242 | 250 |
|
Also available in: Unified diff
Renaming MediaMetaData to MediaInfo