X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=eclipse%2Fplugins%2Fruntime%2Forg.argeo.slc.client.ui%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2FClientUiPlugin.java;fp=eclipse%2Fplugins%2Fruntime%2Forg.argeo.slc.client.ui%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2FClientUiPlugin.java;h=0000000000000000000000000000000000000000;hb=b8b8b7dcec14762561b0f429f99ee779bf50e487;hp=7148f0f54680342cbf37012fb3db1af4f34daaef;hpb=5e5b06fe0c831e66bc048d8bf8da40b32f79a5c9;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/runtime/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/ClientUiPlugin.java b/eclipse/plugins/runtime/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/ClientUiPlugin.java deleted file mode 100644 index 7148f0f54..000000000 --- a/eclipse/plugins/runtime/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/ClientUiPlugin.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.argeo.slc.client.ui; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.resource.ImageRegistry; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class ClientUiPlugin extends AbstractUIPlugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.argeo.slc.client.ui"; - - // The shared instance - private static ClientUiPlugin plugin; - - private BundleContext bundleContext; - - /** - * The constructor - */ - public ClientUiPlugin() { - } - - /* - * (non-Javadoc) - * - * @see - * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext - * ) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - this.bundleContext = context; - plugin = this; - } - - /* - * (non-Javadoc) - * - * @see - * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext - * ) - */ - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static ClientUiPlugin getDefault() { - return plugin; - } - - /** - * Returns an image descriptor for the image file at the given plug-in - * relative path - * - * @param path - * the path - * @return the image descriptor - */ - public static ImageDescriptor getImageDescriptor(String path) { - return imageDescriptorFromPlugin(PLUGIN_ID, path); - } - - @Override - protected void initializeImageRegistry(ImageRegistry reg) { - reg.put("agent", getImageDescriptor("icons/computer.png")); - reg.put("executionModule", getImageDescriptor("icons/archive.png")); - reg.put("folder", getImageDescriptor("icons/folder.png")); - reg.put("flow", getImageDescriptor("icons/system.png")); - reg.put("processes", getImageDescriptor("icons/processes.gif")); - reg.put("passedTest", getImageDescriptor("icons/passed.gif")); - reg.put("failedTest", getImageDescriptor("icons/error.gif")); - } - - public BundleContext getBundleContext() { - return bundleContext; - } - -}