1 package org
.argeo
.slc
.client
.ui
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.jface
.resource
.ImageRegistry
;
5 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
6 import org
.osgi
.framework
.BundleContext
;
9 * The activator class controls the plug-in life cycle
11 public class ClientUiPlugin
extends AbstractUIPlugin
{
14 public static final String PLUGIN_ID
= "org.argeo.slc.client.ui";
16 // The shared instance
17 private static ClientUiPlugin plugin
;
19 private BundleContext bundleContext
;
24 public ClientUiPlugin() {
31 * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
34 public void start(BundleContext context
) throws Exception
{
36 this.bundleContext
= context
;
44 * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
47 public void stop(BundleContext context
) throws Exception
{
53 * Returns the shared instance
55 * @return the shared instance
57 public static ClientUiPlugin
getDefault() {
62 * Returns an image descriptor for the image file at the given plug-in
67 * @return the image descriptor
69 public static ImageDescriptor
getImageDescriptor(String path
) {
70 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
74 protected void initializeImageRegistry(ImageRegistry reg
) {
75 reg
.put("agent", getImageDescriptor("icons/agent.gif"));
76 reg
.put("executionModule", getImageDescriptor("icons/module.png"));
77 reg
.put("folder", getImageDescriptor("icons/folder.gif"));
78 reg
.put("flow", getImageDescriptor("icons/flow.png"));
79 reg
.put("processes", getImageDescriptor("icons/processes.gif"));
80 reg
.put("passedTest", getImageDescriptor("icons/passed.gif"));
81 reg
.put("failedTest", getImageDescriptor("icons/error.gif"));
84 public BundleContext
getBundleContext() {