]>
git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/Activator.java
1 package org
.argeo
.slc
.client
.rcp
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
5 import org
.osgi
.framework
.BundleContext
;
8 * The activator class controls the plug-in life cycle
10 public class Activator
extends AbstractUIPlugin
{
13 public static final String PLUGIN_ID
= "org.argeo.slc.client.rcp";
15 // The shared instance
16 private static Activator plugin
;
26 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
28 public void start(BundleContext context
) throws Exception
{
35 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
37 public void stop(BundleContext context
) throws Exception
{
43 * Returns the shared instance
45 * @return the shared instance
47 public static Activator
getDefault() {
52 * Returns an image descriptor for the image file at the given
53 * plug-in relative path
55 * @param path the path
56 * @return the image descriptor
58 public static ImageDescriptor
getImageDescriptor(String path
) {
59 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);