diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ImageDescriptorRegistry.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ImageDescriptorRegistry.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ImageDescriptorRegistry.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ImageDescriptorRegistry.java index e2d19e2c0..25c71b47a 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ImageDescriptorRegistry.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ImageDescriptorRegistry.java @@ -11,7 +11,7 @@ *******************************************************************************/ package org.eclipse.debug.internal.ui; - + import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -28,7 +28,7 @@ public class ImageDescriptorRegistry { private Map<ImageDescriptor, Image> fRegistry = Collections.synchronizedMap(new HashMap<ImageDescriptor, Image>(10)); private Display fDisplay; - + /** * Creates a new image descriptor registry for the current or default display, * respectively. @@ -36,22 +36,22 @@ public class ImageDescriptorRegistry { public ImageDescriptorRegistry() { this(DebugUIPlugin.getStandardDisplay()); } - + /** * Creates a new image descriptor registry for the given display. All images * managed by this registry will be disposed when the display gets disposed. - * - * @param display the display the images managed by this registry are allocated for + * + * @param display the display the images managed by this registry are allocated for */ public ImageDescriptorRegistry(Display display) { fDisplay= display; Assert.isNotNull(fDisplay); hookDisplay(); } - + /** * Returns the image associated with the given image descriptor. - * + * * @param descriptor the image descriptor for which the registry manages an image * @return the image associated with the image descriptor or <code>null</code> * if the image descriptor can't create the requested image. @@ -60,13 +60,13 @@ public class ImageDescriptorRegistry { if (descriptor == null) { descriptor= ImageDescriptor.getMissingImageDescriptor(); } - + Image result= fRegistry.get(descriptor); if (result != null) { return result; } - - Assert.isTrue(fDisplay == DebugUIPlugin.getStandardDisplay(), DebugUIMessages.ImageDescriptorRegistry_0); + + Assert.isTrue(fDisplay == DebugUIPlugin.getStandardDisplay(), DebugUIMessages.ImageDescriptorRegistry_0); result= descriptor.createImage(); if (result != null) { fRegistry.put(descriptor, result); @@ -76,14 +76,14 @@ public class ImageDescriptorRegistry { /** * Disposes all images managed by this registry. - */ + */ public void dispose() { for (Image image : fRegistry.values()) { image.dispose(); } fRegistry.clear(); } - + private void hookDisplay() { fDisplay.asyncExec(new Runnable() { @Override |