Author: scabanovich
Date: 2012-10-17 13:26:08 -0400 (Wed, 17 Oct 2012)
New Revision: 44560
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIImages.java
Log:
JBIDE-12866
https://issues.jboss.org/browse/JBIDE-12866
CommonUIImages modified.
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIImages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIImages.java 2012-10-17
16:56:48 UTC (rev 44559)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIImages.java 2012-10-17
17:26:08 UTC (rev 44560)
@@ -82,7 +82,10 @@
public final Image getOrCreateImage(String key) {
getOrCreateImageDescriptor(key);
- return getImageRegistry().get(key);
+ ImageRegistry registry = getImageRegistry();
+ synchronized(registry) {
+ return registry.get(key);
+ }
}
public final Image getImageByFileName(String key) {