mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
Cosmetics.
This commit is contained in:
parent
1d59eac559
commit
f76e087cfa
1 changed files with 3 additions and 4 deletions
|
@ -11,7 +11,6 @@
|
||||||
package org.eclipse.cdt.debug.internal.ui;
|
package org.eclipse.cdt.debug.internal.ui;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||||
import org.eclipse.core.runtime.Assert;
|
import org.eclipse.core.runtime.Assert;
|
||||||
|
@ -50,7 +49,8 @@ public class CDebugImageDescriptorRegistry {
|
||||||
*
|
*
|
||||||
* @param descriptor
|
* @param descriptor
|
||||||
* the image descriptor for which the registry manages an image
|
* 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) {
|
public Image get(ImageDescriptor descriptor) {
|
||||||
if (descriptor == null)
|
if (descriptor == null)
|
||||||
|
@ -69,8 +69,7 @@ public class CDebugImageDescriptorRegistry {
|
||||||
* Disposes all images managed by this registry.
|
* Disposes all images managed by this registry.
|
||||||
*/
|
*/
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
for (Iterator<Image> iter = fRegistry.values().iterator(); iter.hasNext();) {
|
for (Image image : fRegistry.values()) {
|
||||||
Image image = iter.next();
|
|
||||||
image.dispose();
|
image.dispose();
|
||||||
}
|
}
|
||||||
fRegistry.clear();
|
fRegistry.clear();
|
||||||
|
|
Loading…
Add table
Reference in a new issue