]>
git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rcp/src/main/java/org/argeo/slc/client/rcp/ClientRcpPlugin.java
1 package org
.argeo
.slc
.client
.rcp
;
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 ClientRcpPlugin
extends AbstractUIPlugin
{
14 public static final String PLUGIN_ID
= "org.argeo.slc.client.rcp";
16 // The shared instance
17 private static ClientRcpPlugin plugin
;
22 public ClientRcpPlugin() {
29 * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
32 public void start(BundleContext context
) throws Exception
{
41 * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
44 public void stop(BundleContext context
) throws Exception
{
50 * Returns the shared instance
52 * @return the shared instance
54 public static ClientRcpPlugin
getDefault() {
59 protected void initializeImageRegistry(ImageRegistry reg
) {
60 reg
.put("argeoTrayIcon",
61 getImageDescriptor("icons/argeo-trayIcon-256.png"));
65 * Returns an image descriptor for the image file at the given plug-in
70 * @return the image descriptor
72 public static ImageDescriptor
getImageDescriptor(String path
) {
73 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);