org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/Images.java
changeset 455 5da55957c779
child 456 12b549765c34
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/Images.java	Wed Jul 28 09:27:51 2010 -0700
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c) 2010 Symbian Foundation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the License "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Symbian Foundation - initial contribution.
+ * Contributors:
+ * Description:
+ * Overview:
+ * Details:
+ * Platforms/Drives/Compatibility:
+ * Assumptions/Requirement/Pre-requisites:
+ * Failures and causes:
+ */
+package org.symbian.tools.mtw.ui;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.swt.graphics.Image;
+
+public final class Images {
+    private final String DISCOVER_ICON = "icons/full/obj16/discover.gif";
+    private final String EXCLUDED_ICON = "icons/full/obj16/excluded.gif";
+
+    private final ImageRegistry registry;
+
+    Images(final ImageRegistry registry) {
+        this.registry = registry;
+        add(registry, DISCOVER_ICON);
+        add(registry, EXCLUDED_ICON);
+    }
+
+    private void add(final ImageRegistry registry, String icon) {
+        ImageDescriptor descriptor = MTWCoreUI.imageDescriptorFromPlugin(MTWCoreUI.PLUGIN_ID, icon);
+        registry.put(icon, descriptor);
+    }
+
+    public Image getDiscoverButtonIcon() {
+        return registry.get(DISCOVER_ICON);
+    }
+
+    public ImageDescriptor getExcludedIconDescriptor() {
+        return registry.getDescriptor(EXCLUDED_ICON);
+    }
+}