diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/wizards/DiscoveryResources.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/wizards/DiscoveryResources.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/wizards/DiscoveryResources.java b/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/wizards/DiscoveryResources.java index 2811f4524..91e8d7916 100644 --- a/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/wizards/DiscoveryResources.java +++ b/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/wizards/DiscoveryResources.java @@ -87,21 +87,21 @@ public class DiscoveryResources { public Image getIconImage(AbstractCatalogSource discoverySource, Icon icon, int dimension, boolean fallback) { String imagePath; switch (dimension) { - case 64: - imagePath = icon.getImage64(); - if (imagePath != null || !fallback) { + case 64 : + imagePath = icon.getImage64(); + if (imagePath != null || !fallback) { + break; + } + case 48 : + imagePath = icon.getImage48(); + if (imagePath != null || !fallback) { + break; + } + case 32 : + imagePath = icon.getImage32(); break; - } - case 48: - imagePath = icon.getImage48(); - if (imagePath != null || !fallback) { - break; - } - case 32: - imagePath = icon.getImage32(); - break; - default: - throw new IllegalArgumentException(); + default : + throw new IllegalArgumentException(); } if (imagePath != null && imagePath.length() > 0) { URL resource = discoverySource.getResource(imagePath); |