Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorSergey Prigogin2010-12-04 22:07:53 +0000
committerSergey Prigogin2010-12-04 22:07:53 +0000
commitf76e087cfa8dbb6f9a1d8febec668761cef31ad4 (patch)
treeaae6e52eea6d1010fa5732a4e6317b5d91f649fe /debug
parent1d59eac559af8f03562fb9ad0da8657a6610b494 (diff)
downloadorg.eclipse.cdt-f76e087cfa8dbb6f9a1d8febec668761cef31ad4.tar.gz
org.eclipse.cdt-f76e087cfa8dbb6f9a1d8febec668761cef31ad4.tar.xz
org.eclipse.cdt-f76e087cfa8dbb6f9a1d8febec668761cef31ad4.zip
Cosmetics.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java
index 5c961bd5153..61f5c5d601d 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImageDescriptorRegistry.java
@@ -11,7 +11,6 @@
package org.eclipse.cdt.debug.internal.ui;
import java.util.HashMap;
-import java.util.Iterator;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.core.runtime.Assert;
@@ -50,7 +49,8 @@ public class CDebugImageDescriptorRegistry {
*
* @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.
+ * @return the image associated with the image descriptor or <code>null</code> if the image
+ * descriptor can't create the requested image.
*/
public Image get(ImageDescriptor descriptor) {
if (descriptor == null)
@@ -69,8 +69,7 @@ public class CDebugImageDescriptorRegistry {
* Disposes all images managed by this registry.
*/
public void dispose() {
- for (Iterator<Image> iter = fRegistry.values().iterator(); iter.hasNext();) {
- Image image = iter.next();
+ for (Image image : fRegistry.values()) {
image.dispose();
}
fRegistry.clear();

Back to the top