]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/ClientUiPlugin.java
Process builder display
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / ClientUiPlugin.java
1 package org.argeo.slc.client.ui;
2
3 import org.eclipse.jface.resource.ImageDescriptor;
4 import org.eclipse.swt.graphics.Image;
5 import org.eclipse.ui.plugin.AbstractUIPlugin;
6 import org.osgi.framework.BundleContext;
7
8 /** The activator class controls the plug-in life cycle */
9 public class ClientUiPlugin extends AbstractUIPlugin {
10 public static final String ID = "org.argeo.slc.client.ui";
11 private static ClientUiPlugin plugin;
12
13 public void start(BundleContext context) throws Exception {
14 super.start(context);
15 plugin = this;
16 }
17
18 public void stop(BundleContext context) throws Exception {
19 plugin = null;
20 super.stop(context);
21 }
22
23 public static ClientUiPlugin getDefault() {
24 return plugin;
25 }
26
27 /** Creates the image */
28 public static Image img(String path) {
29 return getImageDescriptor(path).createImage();
30 }
31
32 public static ImageDescriptor getImageDescriptor(String path) {
33 return imageDescriptorFromPlugin(ID, path);
34 }
35 }