]>
git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.client.rap/src/main/java/org/argeo/slc/client/rap/SlcRapPlugin.java
1 package org
.argeo
.slc
.client
.rap
;
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 * Enable life-cycle management of RAP specific services
12 public class SlcRapPlugin
extends AbstractUIPlugin
{
15 public static final String PLUGIN_ID
= "org.argeo.slc.client.rap"; //$NON-NLS-1$
17 // The shared instance
18 private static SlcRapPlugin plugin
;
23 public SlcRapPlugin() {
30 * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
33 public void start(BundleContext context
) throws Exception
{
42 * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
45 public void stop(BundleContext context
) throws Exception
{
51 * Returns the shared instance
53 * @return the shared instance
55 public static SlcRapPlugin
getDefault() {
60 * Returns an image descriptor for the image file at the given plug-in
65 * @return the image descriptor
67 public static ImageDescriptor
getImageDescriptor(String path
) {
68 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);