1 package org.argeo.slc.client.rap;
2
3 import org.eclipse.jface.resource.ImageDescriptor;
4 import org.eclipse.ui.plugin.AbstractUIPlugin;
5 import org.osgi.framework.BundleContext;
6
7
8
9
10
11
12 public class SlcRapPlugin extends AbstractUIPlugin {
13
14
15 public static final String PLUGIN_ID = "org.argeo.slc.client.rap";
16
17
18 private static SlcRapPlugin plugin;
19
20
21
22
23 public SlcRapPlugin() {
24 }
25
26
27
28
29
30
31
32
33 public void start(BundleContext context) throws Exception {
34 super.start(context);
35 plugin = this;
36 }
37
38
39
40
41
42
43
44
45 public void stop(BundleContext context) throws Exception {
46 plugin = null;
47 super.stop(context);
48 }
49
50
51
52
53
54
55 public static SlcRapPlugin getDefault() {
56 return plugin;
57 }
58
59
60
61
62
63
64
65
66
67 public static ImageDescriptor getImageDescriptor(String path) {
68 return imageDescriptorFromPlugin(PLUGIN_ID, path);
69 }
70
71 }